?? philosopher.h
字號:
#ifndef _PHILOSOPHER#define _PHILOSOPHER#include <thread.h>#include <iostream>#include <string>#include "dining.h"using namespace std;using namespace cpp_threads;class philosopher : public Pthread { private: int _nr; int _count; int _forks; dining *application; Mutex *p_fork; public: philosopher(int n, int forks, void *arg); ~philosopher(); int thread(void *);};#endif /* PHILOSOPHER */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -