Tag: packaged_task
C++11 Multithreading – Part 10: packaged_task Example and Tutorial
In this example we will discuss c++11 std::packaged_task feature and its uses. std::packaged_task<> Details std::packaged_task<> is a class template and represents a asynchronous task. It encapsulates, Advertisements A callable entity i.e either function, lambda function or function object. A shared state that stores the value returned or thrown exception by associated callback. Need of std::packaged_task<> Suppose …
C++11 Multithreading – Part 10: packaged_task Example and TutorialRead More