std::packaged_task enables you to write a simple wrapper for a callable, which you can invoke later.
std:.async feels like an asynchronous function call. Under the hood std::async is a task. One, which is extremely easy to use.
Tasks were one of the latest additions to the C++11 standard. They give you a better abstraction than threads. In the general case, they should be your first choice.
Hunting
Today 296
Yesterday 7363
Week 15656
Month 47732
All 11343146
Currently are 172 guests and no members online
Kubik-Rubik Joomla! Extensions
Read more...
Read more...