文件名称:linux+c+线程锁
文件大小:1KB
文件格式:C
更新时间:2016-02-11 12:39:07
linux c 线程锁
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; pthrepthread_mutex_lock(&mutex;) pthread_mutex_trylock(&mutex;) pthread_mutex_unlock(&mutex;); pthread_mutex_init(&mutex;,NULL); pthread_mutex_destroy(&mutex;);