DThread
This library provides a simple C++ thread wrapper class for pthreads.
DThread is a an abstract base class which wraps thread
functionality. Thread-wrapping classes are derived from DThread. They
redefine the t_Run method which is the thread entry point. A cancellation handler is installed by redefining the t_CancelHandler() method.
Features:
- Threads are created as joinable (deferred cancellation).
- DThread provides a mutex for shared data access serialization.
- Heavy asserts or throws are used to catch class misuse - better a hard failure than sleazy bugs.
- DThread Usage patterns are indicated in the documentation
- Examples are provided in the repository.
License: Modified BSD License
Author: Daniel Roggen