多线程,锁

http://www.cnblogs.com/haippy/archive/2013/08/27/3284540.html

 

std::unique_lock,与 Mutex RAII 相关,方便线程对互斥量上锁,但提供了更好的上锁和解锁控制。

std::mutex,最基本的 Mutex 类。

posted on 2017-05-15 13:38  defe_feath  阅读(85)  评论(0编辑  收藏  举报