O'Reilly logo

Mastering C++ Programming by Jeganathan Swaminathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What did you learn?

Let me summarize the takeaway points:

  • The concurrency support library offers high-level components that enable the execution of several tasks concurrently
  • Future objects let the caller thread retrieve the output of the asynchronous function 
  • The promise object is used by the asynchronous function to set the output or exception
  • The type of FUTURE and PROMISE object must be the same as the type of the value set by the asynchronous function
  • Concurrent components can be used in combination with the C++ thread support library seamlessly
  • The lambda function and expression can be used with the concurrency support library

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required