I find boost::condition_variable has no interface to work with shared_lock (ie. reader-writer lock). But I think it's quite reasonable to use shared lock and condition variable together. Can anyone tell me the reason why condition_variable::wait() only accepts unique_lock object?
Thanks,
Cui
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I find boost::condition_variable has no interface to work with shared_lock (ie. reader-writer lock). But I think it's quite reasonable to use shared lock and condition variable together. Can anyone tell me the reason why condition_variable::wait() only accepts unique_lock object?
Thanks,
Cui