ARGOBOTS  dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
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, ABTI_sched_config *p_config, ABT_bool def_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 scheduler with a scheduler definition. 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 new scheduler with a predefined scheduler type. More...
 
int ABT_sched_free (ABT_sched *sched)
 Free a scheduler. More...
 
int ABT_sched_get_num_pools (ABT_sched sched, int *num_pools)
 Obtain the number of pools associated with a scheduler. More...
 
int ABT_sched_get_pools (ABT_sched sched, int max_pools, int idx, ABT_pool *pools)
 Retrieve pools associated with a scheduler. More...
 
int ABT_sched_finish (ABT_sched sched)
 Request a scheduler to finish after its pools get empty. More...
 
int ABT_sched_exit (ABT_sched sched)
 Request a scheduler to finish. More...
 
int ABT_sched_has_to_stop (ABT_sched sched, ABT_bool *stop)
 Check if a scheduler needs to stop. More...
 
int ABT_sched_set_data (ABT_sched sched, void *data)
 Associate a user value with a scheduler. More...
 
int ABT_sched_get_data (ABT_sched sched, void **data)
 Retrieve a user value associated with a scheduler. More...
 
int ABT_sched_get_size (ABT_sched sched, size_t *size)
 Obtain the sum of sizes of pools associated with a scheduler. More...
 
int ABT_sched_get_total_size (ABT_sched sched, size_t *size)
 Obtain the sum of the total sizes of pools associated with a scheduler. More...
 

Variables

static ABTD_atomic_uint64 g_sched_id = ABTD_ATOMIC_UINT64_STATIC_INITIALIZER(0)
 

Function Documentation

◆ sched_create()

static ABTU_ret_err int sched_create ( ABT_sched_def def,
int  num_pools,
ABT_pool pools,
ABTI_sched_config *  p_config,
ABT_bool  def_automatic,
ABTI_sched **  pp_newsched 
)
static

Definition at line 1086 of file sched.c.

◆ sched_get_kind()

static ABTI_sched_kind sched_get_kind ( ABT_sched_def def)
inlinestatic

Definition at line 1081 of file sched.c.

Variable Documentation

◆ g_sched_id

ABTD_atomic_uint64 g_sched_id = ABTD_ATOMIC_UINT64_STATIC_INITIALIZER(0)
static

Definition at line 1071 of file sched.c.