TizenRT Public API  v2.0 M2
task_manager.h File Reference
#include <tinyara/config.h>
#include <signal.h>
#include <pthread.h>
#include <tinyara/task_manager_internal.h>
Include dependency graph for task_manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tm_appinfo_s
 Application Info Structure. More...
 
struct  tm_appinfo_list_s
 
struct  tm_msg_s
 Unicast message Structure. More...
 

Macros

#define TM_APP_STATE_RUNNING   (1)
 Task State which managed by Task Manager. More...
 
#define TM_APP_PERMISSION_ALL   (0)
 Task Permission. More...
 
#define TM_NO_RESPONSE   (0)
 Returnable Flag from Task Manager. More...
 

Typedefs

typedef void(* _tm_unicast_t) (tm_msg_t *)
 Unicast callback function type. More...
 
typedef void(* _tm_broadcast_t) (void *, void *)
 Broadcast callback function type. More...
 
typedef void(* _tm_termination_t) (void *)
 Termination callback function type. More...
 

Enumerations

Functions

int task_manager_register_builtin (char *name, int permission, int timeout)
 Request to register a built-in task. More...
 
int task_manager_register_task (char *name, int priority, int stack_size, main_t entry, char *argv[], int permission, int timeout)
 Request to register a task which is not in built-in list. More...
 
int task_manager_register_pthread (char *name, pthread_attr_t *attr, pthread_startroutine_t start_routine, pthread_addr_t arg, int permission, int timeout)
 Request to register a pthread which is not in built-in list. More...
 
int task_manager_unregister (int handle, int timeout)
 Request to unregister a task. More...
 
int task_manager_start (int handle, int timeout)
 Request to start the task. More...
 
int task_manager_stop (int handle, int timeout)
 Request to stop the task. More...
 
int task_manager_pause (int handle, int timeout)
 Request to pause the task. More...
 
int task_manager_resume (int handle, int timeout)
 Request to resume the task. More...
 
int task_manager_restart (int handle, int timeout)
 Request to restart the task. More...
 
int task_manager_unicast (int handle, tm_msg_t *send_msg, tm_msg_t *reply_msg, int timeout)
 Request to send messages to the task. More...
 
int task_manager_broadcast (int msg, tm_msg_t *data, int timeout)
 Request to send messages to the tasks. More...
 
int task_manager_set_unicast_cb (void(*func)(tm_msg_t *data))
 Set unicast callback function API. More...
 
int task_manager_set_broadcast_cb (int msg, void(*func)(void *user_data, void *data), tm_msg_t *cb_data)
 Register callback function which will be used for processing a certain received broadcast message. More...
 
int task_manager_set_exit_cb (void(*func)(void *data), tm_msg_t *cb_data)
 Set callback function called when task terminates normally. More...
 
int task_manager_set_stop_cb (void(*func)(void *data), tm_msg_t *cb_data)
 Set callback function called when task is stopped by task manager. More...
 
tm_appinfo_list_ttask_manager_getinfo_with_name (char *name, int timeout)
 Get task information list through task name. More...
 
tm_appinfo_ttask_manager_getinfo_with_handle (int handle, int timeout)
 Get task information through handle. More...
 
tm_appinfo_list_ttask_manager_getinfo_with_group (int group, int timeout)
 Get task information list through group. More...
 
tm_appinfo_ttask_manager_getinfo_with_pid (int pid, int timeout)
 Get the handle through pid. More...
 
void task_manager_clean_info (tm_appinfo_t **info)
 Clean task information. More...
 
void task_manager_clean_infolist (tm_appinfo_list_t **info_list)
 Clean task information list. More...
 
int task_manager_reply_unicast (tm_msg_t *reply_msg)
 Send unicast reply message. More...
 
int task_manager_alloc_broadcast_msg (void)
 Allocate a new broadcast message which is not defined in the <task_manager/task_manager.h>
and <task_manager/task_manager_broadcast_list.h> More...
 
int task_manager_unset_broadcast_cb (int msg, int timeout)
 Unregister callback function which was used for a certain broadcast message. More...
 
int task_manager_dealloc_broadcast_msg (int msg, int timeout)
 Remove the broadcast message which was allocated by using task_manager_alloc_broadcast_msg() API. More...