PulseEvent Method (AEvent)

Sets the state of the event to signaled (available), releases any waiting threads, and resets it to nonsignaled (unavailable) automatically.

Syntax

 [ bPulsed = ] Object.PulseEvent

The PulseEvent method syntax has the following parts:

 

Name

Type

Description

Object

AEvent

AEvent object

bPulsed

Bool

A boolean expression that specifies whether the state of the event is to be signaled (available), any waiting threads are to be released, and the state is to be reset to nonsignaled (unavailable) automatically.

Where

bPulsed can be one of the following:

 

Value

Description

True *

The AEvent object is to be signaled (available), any waiting threads are to be released, and the state is to be reset to nonsignaled (unavailable) automatically.

False

The AEvent object is not to be signaled (unavailable), any waiting threads are not to be released, and the state is not to be reset to nonsignaled (unavailable) automatically.

Example

The following statement attempts to set the state of the AEvent object to signaled (available), releases any waiting threads, and resets it to nonsignaled (unavailable) automatically:

event1.PulseEvent(True)

Applies to

AEvent

See Also

ManualReset, ResetEvent, SetEvent