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 …

  2. 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. …

  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. …

  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::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 …

  6. std::shared_future<T>::wait_for - cppreference.com

    Aug 28, 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 …

  7. std::condition_variable - cppreference.com

    Mar 4, 2024 · std::condition_variable is a synchronization primitive used with a std::mutex to block one or more threads until another thread both modifies a shared variable (the condition) and …

  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 …

  9. 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 …

  10. Execution control library (since C++26) - cppreference.com

    Feb 24, 2025 · The library aims to provide vocabulary types for asynchronous operations and to allow the construction of task execution graphs in a simple, composable way.