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

📄 clients.h

📁 PTypes (C++ Portable Types Library) is a simple alternative to the STL that includes multithreading
💻 H
字号:
/* * *  C++ Portable Types Library (PTypes) *  Version 1.7.5   Released 9-Mar-2003 * *  Copyright (c) 2001, 2002, 2003 Hovik Melikyan * *  http://www.melikyan.com/ptypes/ *  http://ptypes.sourceforge.net/ * */#ifndef W_CLIENTS_H#define W_CLIENTS_H#include <ptime.h>#include <pasync.h>#include "request.h"USING_PTYPESclass client_thread;class thread_list{public:    rwlock lock;    int count;    client_thread** list;    thread_list();    virtual ~thread_list();    void set_capacity(int icount);    void add(client_thread* t);    void del(client_thread* t);};class client_thread: public thread, public request_rec{protected:    ipstream*   client;    int         seq_num;    // sequential number, pseudo-id    virtual void execute();    virtual void cleanup();public:    client_thread(ipstream* iclient);    virtual ~client_thread();    int get_seq_num()  { return seq_num; }};extern thread_list threads;extern int thread_count;extern int thread_seq;extern datetime started;#endif

⌨️ 快捷键说明

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