Boost equivalent of ManualResetEvent?
问题 I'm wondering if there is a boost equivalent of ManualResetEvent? Basically, I'd like a cross-platform implementation... Or, could someone help me mimic ManualResetEvent's functionality using Boost::thread? Thanks guys 回答1: It's pretty easy to write a manual reset event when you have mutexes and condition variables. What you will need is a field that represents whether your reset event is signalled or not. Access to the field will need to be guarded by a mutex - this includes both setting