Permalink
Browse files

example with (re)lock

  • Loading branch information...
1 parent cc761c9 commit 18ab0679774a64b41b0528d58a837a76cac0d9da JuanJo Ciarlante committed Dec 20, 2006
Showing with 1 addition and 0 deletions.
  1. +1 −0 jjotip-mproc-mutex/mproc-mutex.c
@@ -20,6 +20,7 @@
./mproc-mutex foo i #initialize "foo" mutex, will be /dev/shm/foo
./mproc-mutex foo l #lock; call it twice to see it "working"
+ ./mproc-mutex foo l #lock again: will wait until unlock or signalled
./mproc-mutex foo u #unlock
rm /dev/shm/foo #remove it
*/

0 comments on commit 18ab067

Please sign in to comment.