Appendices > Portable Thread Library > Creating a Barrier > Changing the Count on a Barrier
 
Changing the Count on a Barrier
You can change the number of waiting threads on the fly by calling the member function newCount. This call will release any waiting threads if the new count is less than or equal to the number of waiting threads.

Version 6.1
Copyright © 2016, Rogue Wave Software, Inc. All Rights Reserved.