|
|
|
|
|
EventOpen (Function) In french: SignalOuvre Opens a synchronization event between several threads.
AllezY is AutomaticEvent
ThreadExecute("Thread1", threadNormal, "Thread_Premier")
ThreadWaitSignal()
ThreadExecute("Thread2", threadNormal, "Thread_Second")
ThreadWaitSignal()
EventOpen(AllezY)
PROCEDURE Thread_Premier()
Trace(dbgInfo(dbgProcess) + " - ThreadEnvoieSignal(threadPrincipal)")
ThreadSendSignal(threadMain)
EventWait(Allezy)
Trace(dbgInfo(dbgProcess) + " - Signal reçu")
PROCEDURE Thread_Second()
Trace(dbgInfo(dbgProcess) + " - ThreadEnvoieSignal(threadPrincipal)")
ThreadSendSignal(threadMain)
EventWait(Allezy)
Trace(dbgInfo(dbgProcess) + " - Signal reçu")
Syntax <Event>: Character string, or AutomaticEvent or ManualEvent variable Name of the event to open. This name can correspond to: Remarks - This function is equivalent to the following syntax of EventChange:
SignalModifie(<Signal>, signalOuvert) - Case of an automatic signal: The signal lets a single thread through.
The event is automatically closed once the thread is processed. - Waiting threads: If no thread was waiting, the signal remains open until the next thread passes, then closes again..
- New threads: If other threads arrive, they are put on hold.
- Case of a manual signal: Signal goes to open state.
- Waiting threads: All waiting threads pass through.
- New threads: If other threads arrive while the signal is still open, they pass.
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|