
std::this_thread::sleep_for - cppreference.com
Oct 23, 2023 · Blocks the execution of the current thread for at least the specified sleep_duration. This function may block for longer than sleep_duration due to scheduling or resource …
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. …
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 …
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 …
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 …
std::signal - cppreference.com
Jun 5, 2024 · 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 …
std::atomic_notify_one - cppreference.com
Sep 24, 2023 · Performs atomic notifying operations. If there is a thread blocked in atomic waiting operation (i.e. std::atomic_wait (), std::atomic_wait_explicit (), or std::atomic::wait ()) on …
std::atomic<T>::wait - cppreference.com
Feb 8, 2020 · Performs atomic waiting operations. Behaves as if it repeatedly performs the following steps: Compare the value representation of this->load(order) with that of old. If those …
std::jthread - cppreference.com
Apr 26, 2023 · The class jthread represents a single thread of execution. It has the same general behavior as std::thread, except that jthread automatically rejoins on destruction, and can be …
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. …