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]
See the Lasso 8 Language Guide for examples of how to use this tag. This tag is documented on page 104.
Tag Link | [Thread_Event] | Category | Thread |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Preferred | Version | 6.0 |
Output Type | Thread_Event | Security | Tag |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft