Lasso Soft Inc. > Home

[Thread_Pipe->Set]

Places data into a pipe. Any Lasso data type can be placed into the pipe. If any threads are waiting for the data then they will continue executing immediately. If no threads are waiting for the data then it will be stored in the pipe until a thread does check the pipe.

Data can be sent into a pipe using the [Thread_Pipe->Set] tag. That value will remain in the pipe until another thread calls [Thread_Pipe->Get]. If a thread calls [Thread_Pipe->Get] and there is no data in the pipe then the thread can wait until an optional timeout value is reached.

  • Syntax
  • Parameters
[Global: 'myPipe' = (Thread_Pipe)]

[Variable: 'Result' = $myPipe->(Get: 1000)]

[If: $Result != Null]
  ...
[/If]

[$myPipe->(Set: 'Value')]
Required Parameters
Value The value which should be sent into the pipe.
Examples

See the Lasso 8 Language Guide for examples of how to use this tag. This tag is documented on page 105.

Tag Link [Thread_Pipe->Set] Category Technical
Type Member Data Source Any
Support Preferred Version 6.0
Output Type None Security Tag
Implementation LDML Sets 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