Lasso Soft Inc. > Home

[Thread_Event->Wait]

Allows a process to idle until it receives a signal to continue. The tag accepts an optional parameter which is a timeout in milliseconds. If the timeout value is reached then False will be returned. Otherwise, True will be returned when the [Thread_Event] is signalled.

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.

  • Syntax
  • Parameters
[Global: 'mySignal' = (Thread_Event)]

[if: $mySignal->(Wait: 1000)]
  ...
[/If]

[$mySignal->Signal]

[$mySignal->SignalAll]
Required Parameters
Thread Event The thread event to wait.
Examples

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->Wait] Category Thread
Type Member Data Source Any
Support Preferred Version 6.0
Output Type Boolean 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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft