cppthread 1.1.16
C++ Thread Library
Classes
fifo.h File Reference

Thread Runner and Managers. More...

#include <cppthread/guard.h>
#include <cppthread/mutex.h>
#include <snapdev/not_used.h>
#include <snapdev/is_smart_pointer.h>
#include <numeric>
#include <deque>
Include dependency graph for fifo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cppthread::fifo< T >
 Create a thread safe FIFO. More...
 
struct  cppthread::fifo< T >::item_has_predicate< typename, typename, typename >
 
struct  cppthread::fifo< T >::item_has_predicate< C, R(A...), void_t< decltype(std::declval< C >().valid_workload(std::declval< A >()...))> >
 

Detailed Description

This file includes the declaration and implementation (For templates) of classes used to manage threads the easy way. Especially, our implementation is aware of object destructors so a thread manager (snap_thread) can be destroyed. It will automatically and properly wait for its runner (the actual system pthread) to exit before finishing up its and its runner clean up.

Definition in file fifo.h.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.