GLib.ThreadPool – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
ThreadPool
free
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.full
ThreadPool.with_owned_data
_free
add
get_max_threads
get_num_threads
move_to_front
push
set_max_threads
set_sort_function
unprocessed
ThreadPool
Object Hierarchy:
GLib.ThreadPool
GLib.ThreadPool
GLib.ThreadPool
Description:
[
Compact
]
[
CCode
( free_function =
"g_thread_pool_free"
) ]
public
class
ThreadPool
<
T
>
Namespace:
GLib
Package:
glib-2.0
Content:
Static methods:
public
static
void
free
(
owned
ThreadPool
<
T
>? pool,
bool
immediate,
bool
wait)
public
static
uint
get_max_idle_time
()
public
static
int
get_max_unused_threads
()
public
static
uint
get_num_unused_threads
()
public
static
void
set_max_idle_time
(
uint
interval)
public
static
void
set_max_unused_threads
(
int
max_threads)
public
static
void
stop_unused_threads
()
Creation methods:
public
ThreadPool
(
Func
<
T
> func,
int
max_threads,
bool
exclusive)
throws
ThreadError
public
ThreadPool.full
(
Func
<
T
> func,
DestroyNotify
? item_free_func,
int
max_threads,
bool
exclusive)
throws
ThreadError
public
ThreadPool.with_owned_data
(
ThreadPoolFunc
<
T
> func,
int
max_threads,
bool
exclusive)
throws
ThreadError
Methods:
private
void
_free
(
bool
immediate,
bool
wait)
public
void
add
(
owned
T
data)
throws
ThreadError
public
int
get_max_threads
()
public
uint
get_num_threads
()
public
bool
move_to_front
(
T
data)
public
void
push
(
T
data)
throws
ThreadError
public
void
set_max_threads
(
int
max_threads)
throws
ThreadError
public
void
set_sort_function
(
CompareDataFunc
<
T
> func)
public
uint
unprocessed
()