#include <action_queue.hh>

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 |
If threads are disabled, enqueueing an item executes it immediately.
| 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?
1.5.5