threadlibrary.h
来自「I use C to implement thread operating,in」· C头文件 代码 · 共 35 行
H
35 行
#ifndef _THREADLIBRARY_H_
#define _THREADLIBRARY_H_
#ifdef __cplusplus
extern "C"
{
#endif
//****** defination is here******
void th_init(void);
typedef int th_id_t;
#define NULL_THREAD 0
th_id_t th_fork(int s);
void th_yield(void);
void th_exit();
int th_kill(th_id_t t);
th_id_t th_myid();
//****** defination is end*******
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?