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

    Oct 28, 2024 · If policy is std:: launch:: async | std:: launch:: deferred or has additional bits set, it will fall back to deferred invocation or the implementation-defined policies in this case. Notes. …

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

  4. 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. [] Constant

  5. std::packaged_task - cppreference.com

    Feb 10, 2025 · The class template std::packaged_task wraps any Callable target (function, lambda expression, bind expression, or another function object) so that it can be invoked …

  6. Talk:cpp/thread/async - cppreference.com

    Nov 17, 2022 · The documentation seems self-contradictory about async|deferred . It says: "If the async flag is set (i.e. (policy & std::launch::async) != 0), then async executes the callable …

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

    Apr 29, 2025 · Cooperative cancellation (since C++20) The components stop source, stop token, and stop callback can be used to asynchronously request that an operation stops execution in …

  8. std::future<T>:: wait_for - Reference

    Aug 27, 2021 · If the future is the result of a call to std::async that used lazy evaluation, this function returns immediately without waiting. This function may block for longer than …

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

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

    Feb 24, 2025 · Once started, the operation state’s lifetime cannot end before the async operation is complete, and its address must be stable. Scheduler: A lightweight handle to an execution …

Refresh