-
Category : Linux-Unix
Tags :
- Update : 2012-11-26
- Size : 38kb
- Downloaded :1次
- Author :金****
- About :
Nobody
- PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
Outline the principles and the role of each class
(1): CTask a task base class, as arguments to thread
(2): CWorkThread: Class of worker threads, polling detection parameters are available, if available,
Go to the implementation of the function call parameters CTask Execute, if the parameter is not available to wait
(3): CWorkQueue: a task queue, which loaded CTask subclass object is a container object
(4): CWorkThreadPool: worker thread pool, which contains the group of worker threads, scheduling threads, thread scheduling non-stop testing
Task queue is available in the task object, such as over the task of taking to a valid object, the thread from the Working Group to find out
An idle worker thread, this task to the idle thread to execute, if no idle thread is to create a new
The work of the thread and added to the thread group.
(1), (2), (3), (4) form the core of the library, can be modified for application
Other sub categories:
(5): CSim
Packet file list
(Preview for download)
线程库\examples\Makefile
......\........\UDPClient.cpp
......\........\UDPClient.h
......\........\UDPServer.cpp
......\........\UDPServer.h
......\include\CommHead.h
......\.......\LibHead.h
......\.......\LogHelper.h
......\.......\SimpleUDP.h
......\.......\Task.h
......\.......\TaskQueue.h
......\.......\WorkThread.h
......\.......\WorkThreadPool.h
......\src\LogHelper.cpp
......\...\Makefile
......\...\SimpleUDP.cpp
......\...\Task.cpp
......\...\TaskQueue.cpp
......\...\ThreadMain.cpp
......\...\ThreadMain.dsp
......\...\ThreadMain.dsw
......\...\ThreadMain.ncb
......\...\ThreadMain.opt
......\...\ThreadMain.positions
......\...\WorkThread.cpp
......\...\WorkThreadPool.cpp
......\说明.docx
......\src\Debug
......\examples
......\include
......\src
线程库
Related instructions
- We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
- The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
- Please use Winrar for decompression tools
- If download fail, Try it againg or Feedback to us.
- If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
- Before downloading, you can inquire through the uploaded person information