Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

条件变量模式

条件变量模式(Condition Variable Pattern)用于线程或协程之间的同步和通信。在该模式中,一个或多个线程或协程等待某个特定条件的变化,然后再继续执行其他操作。Condition Variable 模式通常与 Mutex 或 RWMutex 配合使用,用于实现线程安全的等待和通知机制。