boost::unique_lock vs boost::lock_guard

前端 未结 5 1694
说谎
说谎 2020-12-12 14:06

I don\'t well understand the difference betweeen these two lock classes. In boost documentation it is said, boost::unique_lock doesn\'t realize lock automatical

5条回答
  •  余生分开走
    2020-12-12 14:08

    I think unique_lock may be also used when you need to emphasize the difference between unique and shared locks.

提交回复
热议问题