paludis::ActionQueue Class Reference
[Threads]

#include <action_queue.hh>

Inheritance diagram for paludis::ActionQueue:

paludis::PrivateImplementationPattern< C_ >

List of all members.

Basic operations

 ActionQueue (const unsigned n_threads=1, const bool nice=false, const bool limit_size=true)
 ~ActionQueue ()

Public Member Functions

void enqueue (const std::tr1::function< void() throw()> &)
void complete_pending ()
void forget_pending ()
unsigned number_of_threads () const


Detailed Description

An ActionQueue consists of a number of threads that take tasks from a queue.

If threads are disabled, enqueueing an item executes it immediately.

Since:
0.26

Member Function Documentation

void paludis::ActionQueue::enqueue ( const std::tr1::function< void() throw()> &   ) 

Enqueue an item.

void paludis::ActionQueue::complete_pending (  ) 

Complete any pending tasks.

void paludis::ActionQueue::forget_pending (  ) 

Forget any pending tasks.

unsigned paludis::ActionQueue::number_of_threads (  )  const

How many threads do we have?


The documentation for this class was generated from the following file:
Generated on Mon Sep 21 10:36:11 2009 for paludis by  doxygen 1.5.4