Share via


CSyncObject Class

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

class CSyncObject : public CObject

Members

Public Constructors

Name

Description

CSyncObject::CSyncObject

Constructs a CSyncObject object.

Public Methods

Name

Description

CSyncObject::Lock

Gains access to the synchronization object.

CSyncObject::Unlock

Gains access to the synchronization object.

Public Operators

Name

Description

CSyncObject::operator HANDLE

Provides access to the synchronization object.

Public Data Members

Name

Description

CSyncObject::m_hObject

The handle to the underlying synchronization object.

Remarks

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.

Inheritance Hierarchy

CObject

CSyncObject

Requirements

Header: afxmt.h

See Also

Reference

CObject Class

Hierarchy Chart