互斥体能让一个或多个数据对象相互排斥。互斥体是线程同步的主要手段。
Mutexes provide mutual exclusion for one or more data objects and are the primary method of thread synchronization.
显示线程在更新显示之前必须等待清除互斥体。
The display thread must wait for the mutex to be clear before updating the display.
否则,线程将阻止,直到清除互斥体。
更新线程将在两个坐标全部处理完之后清除互斥体。
It would clear the mutex after both coordinates had been processed.
更新线程将在两个坐标全部处理完之后清除互斥体。
It would clear the mutex after both coordinates had been processed.
应用推荐