JULEA
|
Data Structures | |
struct | JBackgroundOperation |
Typedefs | |
typedef struct JBackgroundOperation | JBackgroundOperation |
typedef gpointer(* | JBackgroundOperationFunc) (gpointer) |
Functions | |
JBackgroundOperation * | j_background_operation_new (JBackgroundOperationFunc func, gpointer data) |
JBackgroundOperation * | j_background_operation_ref (JBackgroundOperation *background_operation) |
void | j_background_operation_unref (JBackgroundOperation *background_operation) |
gpointer | j_background_operation_wait (JBackgroundOperation *background_operation) |
void | j_background_operation_init (guint count) |
void | j_background_operation_fini (void) |
guint | j_background_operation_get_num_threads (void) |
typedef struct JBackgroundOperation JBackgroundOperation |
typedef gpointer(* JBackgroundOperationFunc) (gpointer) |
void j_background_operation_fini | ( | void | ) |
Shuts down the background operation framework.
guint j_background_operation_get_num_threads | ( | void | ) |
Gets the number of threads used.
void j_background_operation_init | ( | guint | count | ) |
Initializes the background operation framework.
JBackgroundOperation * j_background_operation_new | ( | JBackgroundOperationFunc | func, |
gpointer | data | ||
) |
Creates a new background operation.
func | A function to execute in the background. |
data | User data given to func . |
JBackgroundOperation * j_background_operation_ref | ( | JBackgroundOperation * | background_operation | ) |
Increases a background operation's reference count.
background_operation | A background operation. |
background_operation
. void j_background_operation_unref | ( | JBackgroundOperation * | background_operation | ) |
Decreases a background operation's reference count. When the reference count reaches zero, frees the memory allocated for the background operation.
background_operation | A background operation. |
gpointer j_background_operation_wait | ( | JBackgroundOperation * | background_operation | ) |
Waits for a background operation to finish.
background_operation | A background operation. |