Sends an event to a specific thread to notify it that a significant transition has occurred.
thread_object.SendEvent(event_mask)
Prerequisites
None
Parameters
event_mask
A required numeric expression that specifies the events to be sent. Each bit in event_mask corresponds to a different event. Bit 0 (mask value &H0001) corresponds to event 1. Multiple events may be specified. The maximum event is 16, so the maximum value for event_mask is &HFFFF.
Remarks
Events are messages that are sent to synchronize one thread that is executing a GPL project with another GPL project thread. Utilizing events has several advantages over setting and polling a global variable:
For more details on events and event handling, see the WaitEvent method
Examples
Dim tl As New Thread(“TestThread”)
tl.Start
:
tl.SendEvent(&H10) ' Send event 5 to thread
See Also