共用方式為


CSyncObject::Unlock

The declaration of Unlock with no parameters is a pure virtual function, and must be overridden by all classes deriving from CSyncObject.

virtual BOOL Unlock( ) = 0; 
virtual BOOL Unlock(
   LONG lCount,
   LPLONG lpPrevCount = NULL 
);

Parameters

  • lCount
    Not used by default implementation.

  • lpPrevCount
    Not used by default implementation.

Return Value

Default implementation always returns TRUE.

Remarks

The default implementation of the declaration with two parameters always returns TRUE. This function is called to release access to the synchronization object owned by the calling thread. The second declaration is provided for synchronization objects such as semaphores that allow more than one access of a controlled resource.

Requirements

Header: afxmt.h

See Also

Concepts

CSyncObject Class

CSyncObject Members

Hierarchy Chart