int qSemInit ( const char *  keyfile,
int  keyid,
int  nsems,
bool  ifexistdestroy 
)

Initialize semaphore

Parameters:
keyfile seed for generating unique IPC key
keyid seed for generating unique IPC key
nsems number of semaphore to initialize
ifexistdestroy set to true to destroy if semaphore already exists
Returns:
non-negative shared memory identifier if successful, otherwise returns -1

Definition at line 95 of file qSem.c.


Generated on Mon Mar 26 07:00:52 2018 for JSOC_Documentation by  doxygen 1.5.7.1