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.
Currently are 157 guests and no members online
Kubik-Rubik Joomla! Extensions