SetEvent Method (AEvent)

Sets the state of the object to signaled.

Syntax

[ bSetEvent = ] Object.SetEvent

The SetEvent method syntax has the following parts:

 

Name

Type

Description

Object

AEvent

AEvent object

bSetEvent

Bool

A boolean expression that specifies whether the state of the event is to be signaled (available).

Where

bSetEvent can be one of the following:

 

Value

Description

True *

The AEvent object is to be signaled (available).

False

The AEvent object is not to be signaled (not available).

Comments

Call this member function to set the state of the event to signaled, releasing any waiting threads. If the event is manual, the event will remain signaled until ResetEvent is called. If the event is automatic, the event will remain signaled until a single thread is released.

Example

The following statement attempts to set the state of the AEvent object to signaled:

event1.SetEvent()

Applies to

AEvent

See Also

ManualReset, PulseEvent, ResetEvent