Effective modern C++ live! : Scott Meyers on void futures / with Scott Meyers.

By: Contributor(s): Publisher: [Place of publication not identified] : O'Reilly Media, [2014]Copyright date: (copy)2014Description: 1 online resource (1 streaming video file (49 min., 42 sec.)) : digital, sound, colorContent type:
  • two-dimensional moving image
Media type:
  • computer
Carrier type:
  • online resource
Other title:
  • Effective modern C plus plus live!
  • Scott Meyers on void Futures
Subject(s): Genre/Form: LOC classification:
  • QA76.73.C153
Online resources: Presenter, Scott Meyers.Summary: "What's the best way for one thread to notify another that an event has taken place? The traditional approach is to use a condition variable, but that requires a mutex, and for simple event communication, that seems like overkill: no data requires synchronized access. An alternative is to use a shared flag, but that requires polling on the part of the thread waiting for notification. As of C++ 11, an interesting new option is the use of a void future. Like the approach based on condition variables, the task waiting for notification truly blocks--no polling is required. Like the approach based on a shared flag, there's no need for a mutex. The approach even makes it possible for the notifying thread to throw an exception that the waiting-to-be-notified thread can catch. However, a design based on void futures has costs and is constrained by restrictions that developers must keep in mind when choosing among these event-communication strategies. In this webcast, Scott Meyers covers the pros and cons of void futures as a mechanism for event communication among threads. It's based on information in chapter 7 ("The Concurrency API") of his best-selling new book, Effective Modern C++."--Resource description page.
Item type: eBooks
Star ratings
    Average rating: 0.0 (0 votes)
No physical items for this record

Title from title screen (Safari, viewed July 8, 2015).

Date of publication taken from slide 2 (Safari, viewed July 8, 2015).

Presenter, Scott Meyers.

"What's the best way for one thread to notify another that an event has taken place? The traditional approach is to use a condition variable, but that requires a mutex, and for simple event communication, that seems like overkill: no data requires synchronized access. An alternative is to use a shared flag, but that requires polling on the part of the thread waiting for notification. As of C++ 11, an interesting new option is the use of a void future. Like the approach based on condition variables, the task waiting for notification truly blocks--no polling is required. Like the approach based on a shared flag, there's no need for a mutex. The approach even makes it possible for the notifying thread to throw an exception that the waiting-to-be-notified thread can catch. However, a design based on void futures has costs and is constrained by restrictions that developers must keep in mind when choosing among these event-communication strategies. In this webcast, Scott Meyers covers the pros and cons of void futures as a mechanism for event communication among threads. It's based on information in chapter 7 ("The Concurrency API") of his best-selling new book, Effective Modern C++."--Resource description page.

Copyright © 2020 Alfaisal University Library. All Rights Reserved.
Tel: +966 11 2158948 Fax: +966 11 2157910 Email:
librarian@alfaisal.edu