⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 thread_attributes.h

📁 多线程库
💻 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 + -