The cppthread started based on the functionality offered by the
snap_thread.cpp/.h from the libsnapwebsites.
It includes support for communication between threads, a thread pool, mutexes, etc.
The library supports a thread controller and a runner by default. This allows for a lot of safety that threads do not otherwise offer in C++ (i.e. it is too late to try to destroy a thread once you are in the destructor because many of the virtual functions are going to be wrong by then.)
- Thread Controller (
- Runner, the actual thread (
- Pool workers (
- Guard variables (
- Control thread lifetime (
- Inter thread communication (
The project is covered by the GPL 2.0 license.
Submit bug reports and patches on github.
This file is part of the snapcpp project.
vim: ts=4 sw=4 et