semv | R Documentation |
Mimic the POSIX semaphore API with System V semaphores.
semv_open(value = 0)
semv_post(sid, undo = TRUE)
semv_wait(sid, undo = TRUE)
semv_unlink(sid)
value |
the initial value of the semaphore to create ( |
sid |
the semaphore id as returned by |
undo |
should the operations (decrement/increment) on the semaphore be undone on process termination. This feature is probably the main reason to prefer System V semaphores to POSIX ones. |
For semv_open
, an object of class "semv", which is an integer
referring to the System V semaphore. All other functions return NULL
invisibly and are called for their side effects.
Not supported on Windows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.