Shared lock with condition variable

H.Cui
2013-02-22
2013-05-14
  • H.Cui
    H.Cui
    2013-02-22

    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