About 97 results
Open links in new tab
  1. std:: async - cppreference.com

    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 hold the result of …

  2. std::future - cppreference.com

    An asynchronous operation (performed 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 asynchronous …

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

    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 the state of the result. If …

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

    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 execution is …

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

    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

    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 standard library:

  7. std::promise - cppreference.com

    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 the std::promise …

  8. Extensions for networking - cppreference.com

    The C++ Extensions for Networking, ISO/IEC TS 19216:2018, defines new components for the C++ standard library listed on this page. The Networking TS is based on the C++14 standard as modified …

  9. std::shared_future - cppreference.com

    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 wait for the same shared …

  10. std::signal - cppreference.com

    Notes POSIX requires that signal is thread-safe, and specifies a list of async-signal-safe library functions that may be called from any signal handler. Signal handlers are expected to have C linkage and, in …