Is there a method  to release all threads waiting on a mutex?  Or, more generally, a portable way to release a bunch of threads at the same time? (boost::asio?)

I didn't see anything in the docs, besides barrier.  Unfortunately, I can't guarantee the N threads will be waiting when a flush is needed.

thanks,
graham