|
|
|
|
|
<AutomaticEvent variable>.Open (Function) In french: <Variable SignalAutomatique>.Ouvre Opens a synchronization event between several threads.
Signal_Allezy is AutomaticEvent(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>: AutomaticEvent variable Name of a variable of type AutomaticEvent to be opened. Remarks - This function is equivalent to the following syntax of EventChange:
EventChange(<Event>, eventOpen) - Case of an automation 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 more threads arrive, they are put on hold.
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|