About 35,600 results
Open links in new tab
  1. std:: async - cppreference.com

    Oct 28, 2024 · The function template std::async runs the function f asynchronously (potentially in a separate thread which might be a part of a thread pool) and returns a std::future that will …

  2. Standard library header <future> (C++11) - cppreference.com

    Nov 27, 2023 · async = /* unspecified */, deferred = /* unspecified */, /* implementation-defined */ }; enum class future_status { ready, timeout, deferred }; template<> struct is_error_code_enum …

  3. std::future - cppreference.com

    Mar 12, 2024 · An asynchronous operation (created via std::async, std::packaged_task, or std::promise) can provide a std::future object to the creator of that asynchronous operation. …

  4. std::shared_future - cppreference.com

    Oct 23, 2023 · The class template std::shared_future provides a mechanism to access the result of asynchronous operations, similar to std::future, except that multiple threads are allowed to …

  5. std::future<T>::wait - cppreference.com

    Aug 27, 2021 · Blocks until the result becomes available. valid() == true after the call. The behavior is undefined if valid() == false before the call to this function.

  6. std::launch - cppreference.com

    Mar 19, 2025 · std::launch is a BitmaskType. It specifies the launch policy for a task executed by the std::async function. Constants The following constants denoting individual bits are defined …

  7. Coroutines (C++20) - cppreference.com

    Mar 5, 2025 · A coroutine is a function that can suspend execution to be resumed later. Coroutines are stackless: they suspend execution by returning to the caller, and the data that …

  8. std::future<T>::wait_for - cppreference.com

    Aug 27, 2021 · Waits for the result to become available. Blocks until specified timeout_duration has elapsed or the result becomes available, whichever comes first. The return value identifies …

  9. Multi-threaded executions and data races (since C++11)

    Jan 15, 2025 · A thread of execution is a flow of control within a program that begins with the invocation of a specific top-level function (by std::thread, std::async, std::jthread (since C++20) …

  10. std::future<T>::~future - cppreference.com

    Sep 29, 2024 · These actions will not block for the shared state to become ready, except that they may block if all following conditions are satisfied: The shared state was created by a call to …

Refresh