📄 thread_lists.h
字号:
/*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************//** * Copyright (C) 1999 * * This file is part of the C++ Threads library. * * Implements lists to hold threads, for various purposes inside the * threads library. * * @author Orn E. Hansen <oe.hansen@gamma.telenordia.se> */#ifndef __THREADS_LISTS_H#define __THREADS_LISTS_H#include "linked_list.h"namespace cpp_threads { 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 ThreadList : public Node { private: long _inited; Node *locate(int); public: ThreadList(); ~ThreadList(); void pushBack(Pthread *); void remove(Pthread *); void remove(int); void restart(int); void suspend(int); Pthread *nextChild(Pthread *); Pthread *child(int); Pthread *self(); Pthread *ptr(int); bool inited(); static ThreadList __waiting_s; static ThreadList __threads; };}; // namespace#endif /* __THREADS_LISTS_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -