📄 thread_attributes.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -