About 50 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 eventually …

  2. 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 is required to resume …

  3. std::promise - cppreference.com

    Oct 23, 2023 · The class template std::promise provides a facility to store a value or an exception that is later acquired asynchronously via a std::future object created by the std::promise object. Note that …

  4. 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. The creator of the …

  5. std::thread - cppreference.com

    Oct 24, 2023 · The class thread represents a single thread of execution. Threads allow multiple functions to execute concurrently. Threads begin execution immediately upon construction of the …

  6. Concurrency support library (since C++11) - cppreference.com

    Apr 29, 2025 · Futures The standard library provides facilities to obtain values that are returned and to catch exceptions that are thrown by asynchronous tasks (i.e. functions launched in separate …

  7. std::future<T>::valid - cppreference.com

    Aug 27, 2021 · Checks if the future refers to a shared state. This is the case only for futures that were not default-constructed or moved from (i.e. returned by std::promise::get_future (), …

  8. std::unique_lock - cppreference.com

    Apr 21, 2025 · The class unique_lock is a general-purpose mutex ownership wrapper allowing deferred locking, time-constrained attempts at locking, recursive locking, transfer of lock ownership, and use …

  9. std::thread::detach - cppreference.com

    Jun 3, 2021 · Separates the thread of execution from the thread object, allowing execution to continue independently. Any allocated resources will be freed once the thread exits. After calling detach *this …

  10. 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 by the …