在这种情况下,最好维持分开的同步物件。
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.
唯有在存取集合之前,将所有执行绪都锁定物件,同步处理才会有效。
Synchronization is effective only if all threads lock the object before accessing the collection.
开始非同步的作业,接收具有已指定逾时以及与该作业关联之状态物件的讯息。
Begins an asynchronous operation to receive a message that has a specified time out and state object associated with it.
开始非同步的作业,接收具有与该作业关联之状态物件的讯息。
Begins an asynchronous operation to receive a message that has a state object associated with it.
开始非同步作业以开启通讯物件。
Begins an asynchronous operation to open a communication object.
非同步巡览至位在统一资源识别元 (URI) 的来源内容,并传递包含要在巡览期间用来处理之资料的物件。
Navigates asynchronously to source content located at a uniform resource identifier (URI), and passes an object that contains data to be used for processing during navigation.
可能需要额外的同步处理,特别是在要同时取消相关物件的情况下。
Additional synchronization may be required, particularly in situations where related objects are being canceled concurrently.
您也可指示错误资讯介面、增强物件控制项、交易和非同步讯息伫列的支援。
You can also indicate support for the error information interface, enhanced object control, transactions, and asynchronous message queuing.
将物件非同步地复制到不同的位置。
将物件非同步地复制到不同的位置。
应用推荐