文件名称:MyLinuxThread
-
所属分类:
- 标签属性:
- 上传时间:2014-11-28
-
文件大小:19.29kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
一个线程池的框架
Lock.cpp :锁的操作 , 读锁可以并发 , 写锁独占.
Queue.h : 队列的封装 , 队列的读和写都加了锁的保护.
Socket.cpp : 套接口的简单封装.
Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类.
Worker.cpp : 用户接口类 , 用户需继承此类。
ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派.
TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据.-The framework 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 framework 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/
MyLinuxThread/Data.cpp
MyLinuxThread/Data.h
MyLinuxThread/def.h
MyLinuxThread/ListenThread.cpp
MyLinuxThread/ListenThread.h
MyLinuxThread/Lock.cpp
MyLinuxThread/Lock.h
MyLinuxThread/Log.cpp
MyLinuxThread/Log.h
MyLinuxThread/Makefile
MyLinuxThread/Queue.h
MyLinuxThread/RecvMessThread.cpp
MyLinuxThread/RecvMessThread.h
MyLinuxThread/SendMessThread.cpp
MyLinuxThread/SendMessThread.h
MyLinuxThread/Server.cpp
MyLinuxThread/Server.h
MyLinuxThread/Socket.cpp
MyLinuxThread/Socket.h
MyLinuxThread/testPool.cpp
MyLinuxThread/testPool.h
MyLinuxThread/Thread.cpp
MyLinuxThread/Thread.h
MyLinuxThread/ThreadPool.cpp
MyLinuxThread/ThreadPool.h
MyLinuxThread/Worker.cpp
MyLinuxThread/Worker.h
MyLinuxThread/新建 文本文档.txt
MyLinuxThread/Data.cpp
MyLinuxThread/Data.h
MyLinuxThread/def.h
MyLinuxThread/ListenThread.cpp
MyLinuxThread/ListenThread.h
MyLinuxThread/Lock.cpp
MyLinuxThread/Lock.h
MyLinuxThread/Log.cpp
MyLinuxThread/Log.h
MyLinuxThread/Makefile
MyLinuxThread/Queue.h
MyLinuxThread/RecvMessThread.cpp
MyLinuxThread/RecvMessThread.h
MyLinuxThread/SendMessThread.cpp
MyLinuxThread/SendMessThread.h
MyLinuxThread/Server.cpp
MyLinuxThread/Server.h
MyLinuxThread/Socket.cpp
MyLinuxThread/Socket.h
MyLinuxThread/testPool.cpp
MyLinuxThread/testPool.h
MyLinuxThread/Thread.cpp
MyLinuxThread/Thread.h
MyLinuxThread/ThreadPool.cpp
MyLinuxThread/ThreadPool.h
MyLinuxThread/Worker.cpp
MyLinuxThread/Worker.h
MyLinuxThread/新建 文本文档.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.