Logo Search packages:      
Sourcecode: ardour version File versions

Glib::ThreadPool Class Reference
[Thread Pools]

#include <threadpool.h>

List of all members.


Detailed Description

A pool of threads to execute work concurrently.

Definition at line 39 of file threadpool.h.


Public Member Functions

bool get_exclusive () const
int get_max_threads () const
unsigned int get_num_threads () const
const GThreadPool * gobj () const
GThreadPool * gobj ()
void push (const sigc::slot< void > &slot)
void set_max_threads (int max_threads)
void shutdown (bool immediately=false)
 ThreadPool (int max_threads=-1, bool exclusive=false)
unsigned int unprocessed () const

Static Public Member Functions

static int get_max_unused_threads ()
static unsigned int get_num_unused_threads ()
static void set_max_unused_threads (int max_threads)
static void stop_unused_threads ()

Private Member Functions

ThreadPooloperator= (const ThreadPool &)
 ThreadPool (const ThreadPool &)

Private Attributes

GThreadPool * gobject_
SlotList * slot_list_

Classes

class  SlotList

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index