文件名称:MyLinuxThread
- 所属分类:
- Internet/网络编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2014-11-28
- 文件大小:
- 19kb
- 下载次数:
- 0次
- 提 供 者:
- 盖*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一个线程池的框架
Lock.cpp :锁的操作 , 读锁可以并发 , 写锁独占.
Queue.h : 队列的封装 , 队列的读和写都加了锁的保护.
Socket.cpp : 套接口的简单封装.
Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类.
Worker.cpp : 用户接口类 , 用户需继承此类。
ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派.
TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据.-The fr a mework of a thread pool
Lock.cpp: the lock operation, read locks can be complicated, write lock exclusive.
Queue.h: a cohort of the package, the queue reads and writes are added to lock protection.
Socket.cpp: simple package set interface.
Thread.cpp: the thread package to achieve some simple thread stop operation, startup time other threads need to inherit such.
Worker.cpp: user interface class, the user needs to inherit such.
ListenThread.cpp (inherit Thread.cpp): thread server listener. If a client is connected by the notification class ThreadPool, ThreadPool class assignment.
TaskThread.cpp (inherit Thread.cpp): responsible for specific tasks, accept the client sent the data.
Lock.cpp :锁的操作 , 读锁可以并发 , 写锁独占.
Queue.h : 队列的封装 , 队列的读和写都加了锁的保护.
Socket.cpp : 套接口的简单封装.
Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类.
Worker.cpp : 用户接口类 , 用户需继承此类。
ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派.
TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据.-The fr a mework of a thread pool
Lock.cpp: the lock operation, read locks can be complicated, write lock exclusive.
Queue.h: a cohort of the package, the queue reads and writes are added to lock protection.
Socket.cpp: simple package set interface.
Thread.cpp: the thread package to achieve some simple thread stop operation, startup time other threads need to inherit such.
Worker.cpp: user interface class, the user needs to inherit such.
ListenThread.cpp (inherit Thread.cpp): thread server listener. If a client is connected by the notification class ThreadPool, ThreadPool class assignment.
TaskThread.cpp (inherit Thread.cpp): responsible for specific tasks, accept the client sent the data.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MyLinuxThread
.............\Data.cpp
.............\Data.h
.............\def.h
.............\ListenThread.cpp
.............\ListenThread.h
.............\Lock.cpp
.............\Lock.h
.............\Log.cpp
.............\Log.h
.............\Makefile
.............\Queue.h
.............\RecvMessThread.cpp
.............\RecvMessThread.h
.............\SendMessThread.cpp
.............\SendMessThread.h
.............\Server.cpp
.............\Server.h
.............\Socket.cpp
.............\Socket.h
.............\testPool.cpp
.............\testPool.h
.............\Thread.cpp
.............\Thread.h
.............\ThreadPool.cpp
.............\ThreadPool.h
.............\Worker.cpp
.............\Worker.h
.............\新建 文本文档.txt