sem {bettermc} | R Documentation |
Named POSIX Semaphores
sem_open(name, create = FALSE, overwrite = FALSE, value = 0)
sem_post(sem)
sem_wait(sem)
sem_close(sem)
sem_unlink(name)
name |
the name of the semaphore. Consult |
create |
should the semaphore be created if it currently does not exist? |
overwrite |
if |
value |
the initial value of the semaphore ( |
sem |
an object as returned by |
For sem_open
, an object of class "sem", which is an external
pointer to the POSIX semaphore. All other functions return NULL
invisibly and are called for their side effects.
Not supported on Windows.