Skip to content
C++ thread library with many safety features and strong communication mechanisms
C++ CMake Shell PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake
cppthread
debian
dev
doc
tests
CMakeLists.txt
LICENSE.txt
README.md
TODO.txt
mk

README.md

cppthread

Introduction

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.

Features

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 (thread)
  • Runner, the actual thread (runner)
  • Pool workers (pool, worker)
  • Guard variables (mutex, guard)
  • Control thread lifetime (life)
  • Inter thread communication (fifo)

License

The project is covered by the GPL 2.0 license.

Bugs

Submit bug reports and patches on github.

This file is part of the snapcpp project.

vim: ts=4 sw=4 et

You can’t perform that action at this time.