Lasso Soft Inc. > Home

[Thread_Semaphore->Decrement]

Decrements a semaphore by the specified amount. If any processes are waiting for the semaphore they will be allowed to proceed.

Once a semaphore has reached its limit, any subsequent attempts to increment the semaphore will wait until the semaphore is decremented. If several pages attempt to increment the semaphore simultaneously, any that go over the semaphore limit will have to wait until one of the other pages has decremented the semaphore.

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: 'mySemaphore' = (Thread_Semaphore: 5)]

[$mySemaphore->(Increment: 1)]
  ...
[$mySemaphore->(Decrement: 1)]
Required Parameters
Amount The amount the semaphore should be decremented. This value should match the increment value.
Examples

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

Tag Link [Thread_Semaphore->Decrement] 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