Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

线程同步机制包装类

  • 信号量
  • 互斥锁:实现独占式访问
  • 条件变量:线程同步

为啥要封装起来?

答:实现RAII机制

条件变量为啥要配合互斥锁使用?

参考:程序喵大人 - 知乎文章