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

📄 philosopher.h

📁 C++ SOCKET 类
💻 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 + -