[Toc][Index]

FSH_SEMCLEAR - Clear a semaphore

  
Purpose   
This function allows an FSD to release a semaphore that was previously 
obtained on a call to FSH_SEMREQUEST. 
Calling Sequence   

int far pascal FSH_SEMCLEAR(pSem)

void far * pSem;


Where   
pSem is the handle to the system semaphore or the long address of the ram 
semaphore. 
  
Returns   
If no error is detected, a zero error code is returned. If an error is 
detected, one of the following error codes is returned: 
oERROR_EXCL_ALREADY_OWNED 
the exclusive semaphore is already owned. 
oERROR_PROTECTION_VIOLATION 
the semaphore is inaccessible. 
  
Remarks   
FSH_SEMCLEAR may block. 
Note:   OS/2 does not validate input parameters. An FSD, therefore, should 
call FSH_PROBEBUF where appropriate. 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs