#include <aerospike/as_std.h>
#include <citrusleaf/cf_queue.h>
#include <pthread.h>
Go to the source code of this file.
◆ as_fini_fn
typedef void(* as_fini_fn) (void) |
|
private |
◆ as_task_fn
typedef void(* as_task_fn) (void *user_data) |
|
private |
◆ as_thread_pool_destroy()
Destroy thread pool.
Returns: 0 : Success -1 : Failed to lock mutex -2 : Pool has already been closed
◆ as_thread_pool_init()
int as_thread_pool_init |
( |
as_thread_pool * | pool, |
|
|
uint32_t | thread_size ) |
|
private |
Initialize variable task thread pool and start thread_size threads. Multiple task types can be handled in variable task thread pools.
Returns: 0 : Success -1 : Failed to initialize mutex lock -2 : Failed to lock mutex -3 : Some threads failed to start
◆ as_thread_pool_queue_task()
Queue a variable task onto thread pool.
Returns: 0 : Success -1 : No threads are running to process task. -2 : Failed to push task onto dispatch queue