在这种情况下,最好维持分开的同步物件。
In this situation, it is better to maintain separate synchronization objects.
MFC提供许多类别,这些类别允许执行绪同步物件的存取,以维护执行绪安全性。
MFC provides a number of classes that allow threads to synchronize access to objects to maintain thread safety.
多执行绪:如何使用同步类别说明如何使用可用来同步处理从多重执行绪到单一物件之存取的类别。
Multithreading: how to use the Synchronization classes describes how to use the classes that are available to synchronize access from multiple threads to a single object.
应用推荐