Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
EPOLL detailed examples
no vote
Good example EPOLL document Lock.cpp: the lock operation, read locks can be complicated, write lock is exclusive. Queue.h: encapsulation of queues, queue read and write all the lock protection. Socket.cpp: a simple package of socket. Thread.cpp: the thread stop thread package implements some simple, features such as running start while other threads are required to inherit the class. Worker.cpp: the user interface class, you need to inherit from this class. ListenThread.cpp (inherits Thread.cpp): server listening thread. If client connection notification ThreadPool class, assignments by the ThreadPool class. TaskThread.cpp (inherits Thread.cpp): category specific tasks, is responsible for receiving the data sent by the client. ThreadPool.cpp (inherits Thread.cpp) thread pool class is responsible for starting the thread and thread scheduling. ListenThread.cpp launched the first class, if you have client Connection sends a signal to inform the List
dw40697753
2016-08-23
2
1
No more~