Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetsemsgn()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETSEMSGN()
 Increments a semaphore
------------------------------------------------------------------------------
 Syntax

     NNETSEMSGN(<nHandle>,[<cServer>|<nConId>]) --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <nHandle>  Designates the semaphore handle that is returned by
     NNETSEMOPN() when the semaphore is opened.

     <cServer>  Designates the name of the file server on which <nHandle>
     has been created.  Your workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID for your workstation on
     <cServer>.

 Returns

     NNETSEMSGN() returns .T. if the semaphore has been incremented
     successfully.  If an error occurs (for example, if the handle is
     invalid), the function returns .F..

 Description

     NOVELL NET SEMAPHOR SIGNAL
     With NNETSEMSGN(), a station signal is completed using a semaphore's
     <nHandle> resource.  The semaphore is specified by a handle.  Another
     station waiting for the semaphore can access the semaphore if
     NNETSEMSGN() has been executed successfully.

 Example

     Open, lock, and release the semaphor:

     nHandle=NNETSEMOPN('Test')
     IF NNETSEMWAI(nHandle)
        // Execute action
        ...
        // Release semaphore
        NNETSEMSGN(nHandle)
     ENDIF

See Also: NNETSEMWAI()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson