Tag: std::promise and Returning values from Thread
C++11 Multithreading – Part 8: std::future , std::promise and Returning values from Thread
A std::future object can be used with asych, std::packaged_task and std::promise. In this article will mainly focus on using std::future with std::promise object. Many times we encounter a situation where we want a thread to return a result. Advertisements Now question is how to do this? Lets take an example, Frequently Asked: C++11 Multithreading – …