ARGOBOTS  66b1c39742507d8df30e8d28c54839b961a14814
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Functions
task.c File Reference
#include "abti.h"
Include dependency graph for task.c:

Go to the source code of this file.

Functions

static ABTU_ret_err int task_create (ABTI_local *p_local, ABTI_pool *p_pool, void(*task_func)(void *), void *arg, ABTI_sched *p_sched, int refcount, ABTI_thread **pp_newtask)
 
int ABT_task_create (ABT_pool pool, void(*task_func)(void *), void *arg, ABT_task *newtask)
 Create a new task and return its handle through newtask. More...
 
int ABT_task_create_on_xstream (ABT_xstream xstream, void(*task_func)(void *), void *arg, ABT_task *newtask)
 Create a new tasklet associated with the target ES (xstream). More...
 
int ABT_task_revive (ABT_pool pool, void(*task_func)(void *), void *arg, ABT_task *task)
 Revive the tasklet. More...
 
int ABT_task_free (ABT_task *task)
 Release the task object associated with task handle. More...
 
int ABT_task_join (ABT_task task)
 Wait for the tasklet to terminate. More...
 
int ABT_task_cancel (ABT_task task)
 Request the cancellation of the target task. More...
 
int ABT_task_self (ABT_task *task)
 Return the handle of the calling tasklet. More...
 
int ABT_task_self_id (ABT_unit_id *id)
 Return the ID of the calling tasklet. More...
 
int ABT_task_get_xstream (ABT_task task, ABT_xstream *xstream)
 Get the ES associated with the target tasklet. More...
 
int ABT_task_get_state (ABT_task task, ABT_task_state *state)
 Return the state of task. More...
 
int ABT_task_get_last_pool (ABT_task task, ABT_pool *pool)
 Return the last pool of task. More...
 
int ABT_task_get_last_pool_id (ABT_task task, int *id)
 Get the last pool's ID of the tasklet. More...
 
int ABT_task_set_migratable (ABT_task task, ABT_bool flag)
 Set the tasklet's migratability. More...
 
int ABT_task_is_migratable (ABT_task task, ABT_bool *flag)
 Get the tasklet's migratability. More...
 
int ABT_task_is_unnamed (ABT_task task, ABT_bool *flag)
 Check if the target task is unnamed. More...
 
int ABT_task_equal (ABT_task task1, ABT_task task2, ABT_bool *result)
 Compare two tasklet handles for equality. More...
 
int ABT_task_get_id (ABT_task task, ABT_unit_id *task_id)
 Get the tasklet's id. More...
 
int ABT_task_get_arg (ABT_task task, void **arg)
 Retrieve the argument for the tasklet function. More...
 
int ABT_task_set_specific (ABT_task task, ABT_key key, void *value)
 Set the tasklet-specific value associated with the key. More...
 
int ABT_task_get_specific (ABT_task task, ABT_key key, void **value)
 Get the tasklet-specific value associated with the key. More...
 

Function Documentation

static ABTU_ret_err int task_create ( ABTI_local *  p_local,
ABTI_pool *  p_pool,
void(*)(void *)  task_func,
void *  arg,
ABTI_sched *  p_sched,
int  refcount,
ABTI_thread **  pp_newtask 
)
static

Definition at line 448 of file task.c.

Referenced by ABT_task_create(), and ABT_task_create_on_xstream().