Skip to content

C++ ThreadPool implementing by wrap up POSIX pthread_*

Notifications You must be signed in to change notification settings

NearXdu/ThreadPool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ThreadPool

C++ implementing ThreadPool for practicing

Reference

https://github.com/chenshuo/muduo

Including following components:

1.MutexLock : C++ class wrapping up pthread_mutex
2.MutexLockGuard: C++ RAII trait manage MutexLock
3.Condition: C++ class wrapping up pthread_cond
4.CountDownLatch: C++ class implamenting thread safe counter
5.Thread: C++ class wrapping up pthread_*
6.ThreadPool: C++ class implamenting thread pool contains a blocking queue(one mutex two cond) and a pointer to thread container(boost::ptr_vector)

Build

To build this,the follwing needed:

1.boost
2.c++0x

mkdir build
cd build
cmake ..

About

C++ ThreadPool implementing by wrap up POSIX pthread_*

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published