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

Go to the source code of this file.

Functions

static ABTU_ret_err int sched_create (ABT_sched_def *def, int num_pools, ABT_pool *pools, ABT_sched_config config, ABT_bool automatic, ABTI_sched **pp_newsched)
 
static ABTI_sched_kind sched_get_kind (ABT_sched_def *def)
 
int ABT_sched_create (ABT_sched_def *def, int num_pools, ABT_pool *pools, ABT_sched_config config, ABT_sched *newsched)
 Create a new user-defined scheduler and return its handle through newsched. More...
 
int ABT_sched_create_basic (ABT_sched_predef predef, int num_pools, ABT_pool *pools, ABT_sched_config config, ABT_sched *newsched)
 Create a predefined scheduler. More...
 
int ABT_sched_free (ABT_sched *sched)
 Release the scheduler object associated with sched handle. More...
 
int ABT_sched_get_num_pools (ABT_sched sched, int *num_pools)
 Get the number of pools associated with scheduler. More...
 
int ABT_sched_get_pools (ABT_sched sched, int max_pools, int idx, ABT_pool *pools)
 Get the pools of the scheduler sched. More...
 
int ABT_sched_finish (ABT_sched sched)
 Ask a scheduler to finish. More...
 
int ABT_sched_exit (ABT_sched sched)
 Ask a scheduler to stop as soon as possible. More...
 
int ABT_sched_has_to_stop (ABT_sched sched, ABT_bool *stop)
 Check if the scheduler needs to stop. More...
 
int ABT_sched_set_data (ABT_sched sched, void *data)
 Set the specific data of the target user-defined scheduler. More...
 
int ABT_sched_get_data (ABT_sched sched, void **data)
 Retrieve the specific data of the target user-defined scheduler. More...
 
int ABT_sched_get_size (ABT_sched sched, size_t *size)
 Get the sum of the sizes of the pool of sched. More...
 
int ABT_sched_get_total_size (ABT_sched sched, size_t *size)
 Get the sum of the sizes of the pool of sched. More...
 

Variables

static ABTD_atomic_uint64 g_sched_id = ABTD_ATOMIC_UINT64_STATIC_INITIALIZER(0)
 

Function Documentation

static ABTU_ret_err int sched_create ( ABT_sched_def def,
int  num_pools,
ABT_pool pools,
ABT_sched_config  config,
ABT_bool  automatic,
ABTI_sched **  pp_newsched 
)
static

Definition at line 733 of file sched.c.

Referenced by ABT_sched_create().

static ABTI_sched_kind sched_get_kind ( ABT_sched_def def)
inlinestatic

Definition at line 728 of file sched.c.

Referenced by sched_create().

Variable Documentation

ABTD_atomic_uint64 g_sched_id = ABTD_ATOMIC_UINT64_STATIC_INITIALIZER(0)
static

Definition at line 718 of file sched.c.