Unlock Method (AMutex)

Releases the object.

Syntax

[ bUnlocked = ] Object.UnLock

The UnLock method syntax has the following parts:

 

Name

Type

Description

Object

AMutex

AMutex object

bUnlocked

Variant(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 AMutex object is unlocked.

False

The AMutex object is locked.

 Comments

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

Example

The following statement unlocks a mutex:

bmutexAMutex1Unlock = mutexAMutex1.UnLock

Applies to

AMutex

See Also

Lock