28 pthread_mutex_init(&(dst->
mutex), NULL) ;
38 pthread_mutex_destroy(&(dst->
mutex)) ;
48 pthread_mutex_lock(&(src->
mutex)) ;
58 pthread_mutex_unlock(&(src->
mutex)) ;
pthread_mutex_t mutex
Definition: CNLock.h:18
Object for mutex operation.
Definition: CNLock.h:16
static void CNLock(struct CNLock *src)
Mutex lock.
Definition: CNLock.h:46
static void CNDestroyLock(struct CNLock *dst)
Release the resource for lock.
Definition: CNLock.h:36
static void CNUnlock(struct CNLock *src)
Mutex unlock.
Definition: CNLock.h:56
static void CNInitLock(struct CNLock *dst)
Initialize lock.
Definition: CNLock.h:26