Description: 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.
To Search:
File list (Check if you may need any files):
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