[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FN_SEMSIG()
Signal a semaphore (increment)
------------------------------------------------------------------------------
Syntax
fn_semSig( <nHandle> ) -> nRc
Arguments
<nHandle> is the semaphore handle, returned from a previous call
to fn_semOpen().
Returns
nRc, a numeric, as follows
0 - success
1 - semaphore overflow ( value > 127 )
255 - invalid semaphore handle
Description
Use fn_semSig() when your app has finished with the resource
locked by a semaphore. This will increase the value (thus
making a slot available to another app).
For more information, see the description under fn_semOpen().
Examples
QOUT( "Signal returns: " + STR( fn_semSig( nHandle ) ) )
Source: N:\SRC\SYNCHRO\SEMA.PRG
Author: Glenn Scott
See Also:
FN_SEMOPEN()
FN_SEMEX()
FN_SEMWAIT()
FN_SEMCLOS()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson