wip on threading/promise

This commit is contained in:
Frank B. Brokken 2014-10-16 08:44:37 +02:00
parent bac7b334a6
commit 6bc1f8ed6a

View file

@ -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>