|
|
|
|
|
- Mode for sharing the events
Creates an event. An event is used to synchronize several threads at the same time. If the event is open, all the threads waiting for the event are unlocked.
EventCreate("Let's go", eventManual, eventClose)
ThreadExecute("Thread1", threadNormal, "Thread_First")
ThreadWaitSignal()
ThreadExecute("Thread2", threadNormal, "Thread_Second")
ThreadWaitSignal()
EventChange("Let's go", eventOpen)
PROCEDURE Thread_First()
Trace(dbgInfo(dbgProcess) + " - ThreadSendSignal(threadMain)")
ThreadSendSignal(threadMain)
EventWait("Let's go")
Trace(dbgInfo(dbgProcess) + " - Event received")
PROCEDURE Thread_Second()
Trace(dbgInfo(dbgProcess) + " - ThreadSendSignal(threadMain)")
ThreadSendSignal(threadMain)
EventWait("Let's go")
Trace(dbgInfo(dbgProcess) + " - Event received")
Sintaxis
EventCreate(<Event> [, <Mode> [, <Initial status> [, <Options>]]])
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|