NWSignalSemaphore(3nw)


NWSignalSemaphore -- increments semaphore value by one

Synopsis

   #include <nwsync.h> 
   or 
    #include <nwcalls.h> 
   

NWCCODE N_API NWSignalSemaphore (NWCONN_HANDLE conn, nuint32 semHandle);

Description

The parameters are as follows:

conn
(IN) Specifies the NetWare server connection handle.

semHandle
(IN) Specifies the semaphore handle of the semaphore to be signaled (obtained by calling NWOpenSemaphore).

Return values

0x0000
SUCCESSFUL

0x8801
INVALID_CONNECTION

0x89F
LOCK_ERROR

Notices

If another client is waiting on the semaphore, a successful completion code is returned to the waiting client.

An application must call NWSignalSemaphore when it finishes accessing the network resource associated with the semaphore. If processes are waiting to use the semaphore, the first process in the queue is released (signaled).

Services

Synchronization

NCP calls

0x2222 32 3 Signal Semaphore

 
 0x2222   32   3   Signal Semaphore 

References

NWCloseSemaphore(3nw), NWExamineSemaphore(3nw), NWOpenSemaphore(3nw), NWWaitOnSemaphore(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.