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

Item with Predicate for Worker FIFO Pool. More...

#include <cppthread/mutex.h>
#include <deque>
Include dependency graph for item_with_predicate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cppthread::item_with_predicate
 A runner augmentation allowing for worker threads. More...
 

Detailed Description

This file defines the base class one can use to have items one can send to a pool of threads for processing. The difference with the default FIFO items, these can include a predicate. The cppthread version uses items as the predicates. So you just have to create all the jobs you want to process as items and then add some of these items as dependencies of other items.

Definition in file item_with_predicate.h.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.