thread_lists.h

来自「多线程库」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef __THREADS_LISTS_H#define __THREADS_LISTS_H#include <thread_list.h>class pthread;//// the program needs two lists, one for each thread that is// active.  And another for each thread requesting a wakeup// on thread reset signal.//class thread_list : public list<pthread *> {public:  typedef list<pthread *>::iterator iterator;  thread_list() { };  ~thread_list() { };  iterator locate(int);  void remove(int);  void restart(int);  void suspend(int);  pthread *self();  static thread_list __waiting_s;  static thread_list __threads;};#endif /* __THREADS_LISTS_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?