c++ - 一个拥有Mutex的线程,如何理解这句话?
黄舟
黄舟 2017-04-17 13:48:09
0
3
538

一个拥有Mutex的线程,如何理解这句话?线程可以拥有Mutex?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
大家讲道理

mutex is a mechanism for implementing protected access to shared resources.
A thread that owns a Mutex means that only the thread that owns the Mutex can run the critical section protected by the mutex at the same time until the thread releases the mutex.

刘奇

It is the active thread among all the threads protected by this Mutex.
btw: Mutex is a mutex lock

刘奇

This should mean that this thread called mutex.lock

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template