|
|
|
|
|
<ManualEvent variable>.Open (Function) In french: <Variable SignalManuel>.Ouvre Opens a synchronization event between several threads.
Signal_Allezy is ManualEvent(eventClose)
ThreadExecute("Thread1", threadNormal, "Thread_Premier")
ThreadWaitSignal()
ThreadExecute("Thread2", threadNormal, "Thread_Second")
ThreadWaitSignal()
Signal_Allezy.Open()
PROCEDURE Thread_Premier()
Trace(dbgInfo(dbgProcess) + " - ThreadEnvoieSignal(threadPrincipal)")
ThreadSendSignal(threadMain)
Signal_Allezy.Attend()
Trace(dbgInfo(dbgProcess) + " - Signal reçu")
PROCEDURE Thread_Second()
Trace(dbgInfo(dbgProcess) + " - ThreadEnvoieSignal(threadPrincipal)")
ThreadSendSignal(threadMain)
Signal_Allezy.Attend()
Trace(dbgInfo(dbgProcess) + " - Signal reçu")
Syntax <Event>: ManualEvent variable Name of a variable of type ManualEvent to be opened. Remarks - This function is equivalent to the following syntax of EventChange:
EventChange(<Event>, eventOpen) - 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|