📄 thread.h
字号:
#ifndef THREAD_H#define THREAD_H#include <pthread.h>class Thread{private: static void* entrypoint(void *parameters);protected: virtual void run() = 0;public: Thread(int synchronous = 0, int realtime = 0); virtual ~Thread(); void start(); end(pthread_t tid); // end another thread end(); // end this thread join(); // join this thread suspend_thread(); // suspend this thread continue_thread(); // continue this thread exit_thread(); // exit this thread int synchronous; // set to 1 to force join() to end int realtime; // set to 1 to schedule realtime pthread_t tid;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -