Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CSyncObject Class

A pure virtual class that provides functionality common to the synchronization objects in Win32.

class CSyncObject : public CObject

Name

Description

CSyncObject::CSyncObject

Constructs a CSyncObject object.

Name

Description

CSyncObject::Lock

Gains access to the synchronization object.

CSyncObject::Unlock

Gains access to the synchronization object.

Name

Description

CSyncObject::operator HANDLE

Provides access to the synchronization object.

Name

Description

CSyncObject::m_hObject

The handle to the underlying synchronization object.

The Microsoft Foundation Class Library provides several classes derived from CSyncObject. These are CEvent, CMutex, CCriticalSection, and CSemaphore.

For information on how to use the synchronization objects, see the article Multithreading: How to Use the Synchronization Classes.

Header: afxmt.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.