thread.h

来自「接收端的程序」· C头文件 代码 · 共 12 行

H
12
字号
#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 + =
减小字号Ctrl + -
显示快捷键?