?? thread.h
字號:
#ifndef _THREAD_H
#define _THREAD_H
#include <pthread.h>
int sem=0; /*the semphore variable*/
pthread_mutex_t ndone_mutex=PTHREAD_MUTEX_INITIALIZER; /*thread lock*/
pthread_cond_t ndone_cond=PTHREAD_COND_INITIALIZER; /*the condition variable*/
#endif /*thread.h*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -