This documentation is archived and is not being maintained.


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 



Not used by default implementation.


Not used by default implementation.

Default implementation always returns TRUE.

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.