Tag Link | [Thread_Event] | Category | Threads |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 6.0 |
Change | Unchanged | Data Source | Any |
Output Type | Thread_Event | Security | Tag |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
Allows a process to idle until it receives a signal to continue.
A thread can wait for a signal using [Thread_Event->Wait] with an optional timeout value. A thread event can be signaled using [Thread_Event->Signal] to allow one thread to proceed or [Thread_Event->SignalAll] to all threads waiting for a signal to proceed.
Note: The use of thread tools is entirely voluntary. There is nothing in Lasso that prevents access to the same shared resource, but the diligent use of the thread tools will ensure predictable results.
[Global: 'mySignal' = (Thread_Event)]
[if: $mySignal->(Wait: 1000)]
...
[/If]
[$mySignal->Signal]
[$mySignal->SignalAll]
No Parameters Required.
See the Lasso 8 Language Guide for examples of how to use this tag.