CSingleLock::Unlock

BOOL Unlock( );

BOOL Unlock( LONG lCount, LPLONG lPrevCount = NULL );

Return Value

Nonzero if the function was successful; otherwise 0.

Parameters

lCount

Number of accesses to release. Must be greater than 0. If the specified amount would cause the object’s count to exceed its maximum, the count is not changed and the function returns FALSE.

lPrevCount

Points to a variable to receive the previous count of the synchronization object. If NULL, the previous count is not returned.

Remarks

Releases the synchronization object owned by CSingleLock. This function is called by CSingleLock’s destructor.

If you need to release more than one access count of a semaphore, use the second form of Unlock and specify the number of accesses to release.

CSingleLock OverviewClass MembersHierarchy Chart