| 
    UniMRCP
    1.7.0
    
   | 
 
Thread Execution Abstraction. More...


Go to the source code of this file.
Data Structures | |
| struct | apt_task_vtable_t | 
Typedefs | |
| typedef typedefAPT_BEGIN_EXTERN_C struct apt_task_t | apt_task_t | 
| typedef struct apt_task_vtable_t | apt_task_vtable_t | 
| typedef apt_bool_t(* | apt_task_method_f) (apt_task_t *task) | 
| typedef void(* | apt_task_event_f) (apt_task_t *task) | 
Thread Execution Abstraction.
| typedef void(* apt_task_event_f) (apt_task_t *task) | 
Opaque task event declaration
| typedef apt_bool_t(* apt_task_method_f) (apt_task_t *task) | 
Opaque task method declaration
| typedef typedefAPT_BEGIN_EXTERN_C struct apt_task_t apt_task_t | 
Opaque task declaration
| typedef struct apt_task_vtable_t apt_task_vtable_t | 
Opaque task virtual table declaration
| apt_bool_t apt_task_add | ( | apt_task_t * | task, | 
| apt_task_t * | child_task | ||
| ) | 
Add child task.
| task | the task to add child task to | 
| child_task | the child task to add | 
| void apt_task_auto_ready_set | ( | apt_task_t * | task, | 
| apt_bool_t | auto_ready | ||
| ) | 
Enable/disable auto ready mode.
| task | the task to set mode for | 
| auto_ready | the enabled/disabled auto ready mode | 
| apt_task_t* apt_task_create | ( | void * | obj, | 
| apt_task_msg_pool_t * | msg_pool, | ||
| apr_pool_t * | pool | ||
| ) | 
Create task.
| obj | the external object to associate with the task | 
| msg_pool | the pool of task messages | 
| pool | the pool to allocate memory from | 
| void apt_task_delay | ( | apr_size_t | msec | ) | 
Hold task execution.
| msec | the time to hold | 
| apt_bool_t apt_task_destroy | ( | apt_task_t * | task | ) | 
Destroy task.
| task | the task to destroy | 
| apt_task_msg_t* apt_task_msg_get | ( | apt_task_t * | task | ) | 
Get (acquire) task message.
| task | the task to get task message from | 
| apt_bool_t apt_task_msg_parent_signal | ( | apt_task_t * | task, | 
| apt_task_msg_t * | msg | ||
| ) | 
Signal (post) message to the parent of the specified task.
| task | the task to signal message to | 
| msg | the message to signal | 
| apt_bool_t apt_task_msg_process | ( | apt_task_t * | task, | 
| apt_task_msg_t * | msg | ||
| ) | 
Process message signaled to the task.
| task | the task to process message | 
| msg | the message to process | 
| apt_bool_t apt_task_msg_signal | ( | apt_task_t * | task, | 
| apt_task_msg_t * | msg | ||
| ) | 
Signal (post) message to the task.
| task | the task to signal message to | 
| msg | the message to signal | 
| const char* apt_task_name_get | ( | const apt_task_t * | task | ) | 
Get task name.
| task | the task to get name from | 
| void apt_task_name_set | ( | apt_task_t * | task, | 
| const char * | name | ||
| ) | 
Give a name to the task.
| task | the task to give name for | 
| name | the name to set | 
| void* apt_task_object_get | ( | const apt_task_t * | task | ) | 
Get external object associated with the task.
| task | the task to get object from | 
| apt_bool_t apt_task_offline | ( | apt_task_t * | task | ) | 
Take task offline.
| task | the task to take offline | 
| apt_bool_t apt_task_online | ( | apt_task_t * | task | ) | 
Bring task online.
| task | the task to bring online | 
| apt_task_t* apt_task_parent_get | ( | const apt_task_t * | task | ) | 
Get parent (master) task.
| task | the task to get parent from | 
| apr_pool_t* apt_task_pool_get | ( | const apt_task_t * | task | ) | 
Get memory pool associated with task.
| task | the task to get pool from | 
| apt_bool_t apt_task_ready | ( | apt_task_t * | task | ) | 
Explicitly indicate task is ready to process messages.
| task | the task | 
| apt_bool_t* apt_task_running_flag_get | ( | apt_task_t * | task | ) | 
Get the running flag.
| task | the task | 
| apt_bool_t apt_task_start | ( | apt_task_t * | task | ) | 
Start task.
| task | the task to start | 
| apt_bool_t apt_task_start_request_add | ( | apt_task_t * | task | ) | 
Add start request.
| task | the task | 
| apt_bool_t apt_task_start_request_process | ( | apt_task_t * | task | ) | 
Process task start request.
| task | the task being started | 
| apt_bool_t apt_task_start_request_remove | ( | apt_task_t * | task | ) | 
Remove start request.
| task | the task | 
| apt_bool_t apt_task_terminate | ( | apt_task_t * | task, | 
| apt_bool_t | wait_till_complete | ||
| ) | 
Terminate task.
| task | the task to terminate | 
| wait_till_complete | whether to wait for task to complete or process termination asynchronously | 
| apt_bool_t apt_task_terminate_request_add | ( | apt_task_t * | task | ) | 
Add termination request.
| task | the task | 
| apt_bool_t apt_task_terminate_request_process | ( | apt_task_t * | task | ) | 
Process task termination request.
| task | the task being terminated | 
| apt_bool_t apt_task_terminate_request_remove | ( | apt_task_t * | task | ) | 
Remove termination request.
| task | the task | 
| apt_task_vtable_t* apt_task_vtable_get | ( | apt_task_t * | task | ) | 
Get task vtable.
| task | the task to get vtable from | 
| apt_bool_t apt_task_wait_till_complete | ( | apt_task_t * | task | ) | 
Wait for task till complete.
| task | the task to wait for | 
 1.8.13