Whamcloud - gitweb
Implementation of inter-process mutex and condition:
authorliangzhen <liangzhen>
Thu, 23 Feb 2006 03:38:34 +0000 (03:38 +0000)
committerliangzhen <liangzhen>
Thu, 23 Feb 2006 03:38:34 +0000 (03:38 +0000)
commit888f4d322d6681f0ef2aa40a2845b9699fc7bcd0
tree03058c9f84894c24e3e70c84d2827c6a25d2f019
parentc627846809aaf21f633c05781e3cc55ca9eeb8d2
Implementation of inter-process mutex and condition:
Pthread_mutex_t and pthread_cond_t can only be used as inter-thread
synchronization in Darwin, they can't synchronize processes created
by fork() even in shared-memory.
Here we use named semphore to implement mutex and condition for
multi-process synchronization in Darwin.
lustre/utils/obd.c
lustre/utils/platform.h