Top | ![]() |
![]() |
![]() |
![]() |
EOperationPool * | e_operation_pool_new () |
|
e_operation_pool_free () |
|
e_operation_pool_reserve_opid () |
|
e_operation_pool_release_opid () |
|
e_operation_pool_push () |
EOperationPool * e_operation_pool_new (,
guint max_threads,
GFunc thread_func);
gpointer user_data
[skip]
max_threads |
Maximum number of threads for this pool |
|
thread_func |
Function to run for a given thread |
|
user_data |
The user data to pass to |
a new EOperationPool with the given settings.
Free it with e_operation_pool_free()
, when no longer needed.
[transfer full]
Since: 3.2
void e_operation_pool_free (EOperationPool *pool
);
Frees previously created pool
.
Since: 3.2
guint32 e_operation_pool_reserve_opid (EOperationPool *pool
);
Reserves new operation ID, which is returned. This operation ID may
be released by e_operation_pool_release_opid()
when the operation
is finished.
Since: 3.2
void e_operation_pool_release_opid (EOperationPool *pool
,);
guint32 opid
Releases opid
previously reserved by e_operation_pool_reserve_opid()
.
Since: 3.2
void e_operation_pool_push (EOperationPool *pool
,);
gpointer opdata
Pushes an operation to be processed. opdata
is passed to the function
provided in e_operation_pool_new()
.
Since: 3.2
typedef struct _EOperationPool EOperationPool;
Contains only private data that should be read and manipulated using the functions below.
Since: 3.2