Unlock Method (ASemaphore)

Release and increase the object count by the specified amount.

Syntax

[ lPrevCount = ] Object.UnLock( [lCount] )

The UnLock method syntax has the following parts:

 

Name

Type

Description

Object

ASemaphore

ASemaphore object

lCount

Val Variant

A number specifying the amount by which to increase the object count. The default is 1.

lPrevCount

Long

A number specifying the previous object count.

Example

The following statement unlocks an ASemaphore object and increases the object count by one:

lsem1PrevCount = sem1.UnLock(1)

Applies to

ASemaphore

See Also

Lock