Export (0) Print
Expand All

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.

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.

Community Additions

ADD
Show:
© 2014 Microsoft