CSyncObject::Unlock

virtual BOOL Unlock( ) = 0;

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

Return Value

Default implementation always returns TRUE.

Parameters

lCount

Not used by default implementation.

lpPrevCount

Not used by default implementation.

Remarks

The declaration of Unlock with no parameters is a pure virtual function, and must be overridden by all classes deriving from CSyncObject. 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.

CSyncObject OverviewClass MembersHierarchy Chart