
20 Aug
2007
20 Aug
'07
10:25 p.m.
Howard Hinnant wrote:
Here is a link to a reference implementation and a FAQ for mutexes, locks and condition variables I am currently anticipating proposing for C++ standardization (or subsequent TR).
http://home.twcny.rr.com/hinnant/cpp_extensions/concurrency_rationale.html
I'm not particularly fond of the unchecked<> adaptor and the requirement that wait is called with the same mutex when the condition is default-constructed (stricter than POSIX). Why not make the latter the unchecked case? Before you answer "overhead", consider that wait blocks and is already a throwing function.