home *** CD-ROM | disk | FTP | other *** search
/ Programming with VisualAge for Java / IBMVJAVA.ISO / icswin95 / httpdw32.z / sem.h < prev    next >
C/C++ Source or Header  |  1997-04-07  |  498b  |  23 lines

  1. #ifndef NS_SEM_H
  2. #define NS_SEM_H
  3.  
  4.  
  5. typedef   void * SEMAPHORE;
  6. #define SEM_ERROR    ((SEMAPHORE) NULL)
  7.  
  8. int       sem_grab(SEMAPHORE sId);
  9.  
  10. /* Netscape forces you to use the parms here.  We
  11.  * couldn't care less, because we don't use file
  12.  * locking in our implementation of this.
  13.  */
  14.  
  15. SEMAPHORE sem_init(char * pcDummy, int iDummy);
  16. int       sem_release(SEMAPHORE sId);
  17. void      sem_terminate(SEMAPHORE sId);
  18. int       sem_tgrab(SEMAPHORE sId); 
  19.  
  20.  
  21.  
  22. #endif  /* NS_SEM_H */
  23.