CCriticalSection::CCriticalSection

Constructs a CCriticalSection object.

CCriticalSection( );

Remarks

To access or release a CCriticalSection object, create a CSingleLock object and call its Lock and Unlock member functions. If the CCriticalSection object is being used stand-alone, call its Unlock member function to release it.

If the constructor fails to allocate the required system memory, a memory exception (of type CMemoryException) is automatically thrown.

Example

See the example for CCriticalSection::Lock.

Requirements

Header: afxmt.h

See Also

Reference

CCriticalSection Class

Hierarchy Chart

Other Resources

CCriticalSection Members