UnLock Method (ACriticalSection)

Releases the object.

Syntax

[ bUnlocked = ] Object.UnLock

The UnLock method syntax has the following parts:

 

Name

Type

Description

Object

ACriticalSection

ACriticalSection object

bUnlocked

Bool

A boolean expression that specifies whether the object is locked or unlocked.

Where

bUnlocked can be one of the following:

 

Value

Description

True *

The ACriticalSection object is unlocked.

False

The ACriticalSection object is locked.

 Comments

You must call the Unlock member function once for each call to Lock.

Example

The following statement unlocks a critical section:

csCriticalSection1.UnLock

Applies to

ACriticalSection

See Also

Lock