GLib.ThreadPool – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
ThreadPool
get_max_idle_time
get_max_unused_threads
get_num_unused_threads
set_max_idle_time
set_max_unused_threads
stop_unused_threads
ThreadPool
ThreadPool.with_owned_data
add
get_max_threads
get_num_threads
push
set_max_threads
set_sort_function
unprocessed
ThreadPool
Object Hierarchy:
Description:
[
Compact
]
public
class
ThreadPool
<
T
>
Namespace:
GLib
Package:
glib-2.0
Content:
Static methods:
public
static
void
set_max_unused_threads
(
int
max_threads)
public
static
int
get_max_unused_threads
()
public
static
uint
get_num_unused_threads
()
public
static
void
stop_unused_threads
()
public
static
void
set_max_idle_time
(
uint
interval)
public
static
uint
get_max_idle_time
()
Creation methods:
public
ThreadPool
(
Func
<
T
> func,
int
max_threads,
bool
exclusive)
throws
ThreadError
public
ThreadPool.with_owned_data
(
ThreadPoolFunc
<
T
> func,
int
max_threads,
bool
exclusive)
throws
ThreadError
Methods:
public
void
push
(
T
data)
throws
ThreadError
public
void
add
(
owned
T
data)
throws
ThreadError
public
void
set_max_threads
(
int
max_threads)
throws
ThreadError
public
int
get_max_threads
()
public
uint
get_num_threads
()
public
uint
unprocessed
()
public
void
set_sort_function
(
CompareDataFunc
<
T
> func)