thread_attributes.h
来自「多线程库」· C头文件 代码 · 共 43 行
H
43 行
#ifndef __THREADS_ATTRIBUTES_H#define __THREADS_ATTRIBUTES_Hextern "C" {# include <sched.h>};/** * Thread attributes. These can be used to change the policy * of a thread, and clones. */struct attributes { enum scope { process_shared, process_private }; enum inheritance { attr_inherit, attr_explicit }; enum state { attr_joinable, attr_detached }; enum policy { other = SCHED_OTHER, fifo = SCHED_FIFO, rrobin = SCHED_RR }; scope a_scope; inheritance a_inherit; state a_state; policy a_policy; struct sched_param a_param; attributes();};#endif /* THREADS ATTRIBUTES */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?