EPOLL detailed examples
2016-08-23
2 0 0
no vote
Other
Earn points
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
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
c++
epoll
例子
详细
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment