public member function
<future>
std::packaged_task::make_ready_at_thread_exitvoid make_ready_at_thread_exit (args... args);
Call stored task and make ready at thread exit
Calls the stored task, forwarding args as its arguments, just like calling its operator() member, but making the shared state ready at thread exit, instead of as soon as the call completes.If a future object that is associated to the same shared state is waiting on a call to future::get, it stays blocked until the thread ends. Once the thread ends, the call to future::get unblocks and returns or throws an exception.
Notice that calling this function already sets the value in the shared state, and any call that attempts to modify this value between this call and the end of the thread will throw future_error with promise_already_satisfied as error condition.
This member function throws an exception on the following conditions:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4