mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
wip on threading/promise
This commit is contained in:
parent
bac7b334a6
commit
6bc1f8ed6a
1 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,13 @@
|
|||
In addition to tt(std::package_task) and tt(std::async) the class template
|
||||
hi(promise)tt(std::promise) can be used to exchange results among different
|
||||
threads. A value or exception may be assigned to a tt(promise) in one thread,
|
||||
allowing another thread to access the tt(future) associated with the
|
||||
tt(promise) at some later point in time.
|
||||
|
||||
Before using the class template tt(promise) the tthi(future) header file
|
||||
must be included.
|
||||
|
||||
|
||||
Class template std::promise
|
||||
|
||||
template <class R>
|
||||
|
|
Loading…
Reference in a new issue