ARGOBOTS  7496202f85916e93d6d143320764c2aba5026d93
 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...
 
size_t ABTI_sched_get_size (ABTI_sched *p_sched)
 
int ABT_sched_get_total_size (ABT_sched sched, size_t *size)
 Get the sum of the sizes of the pool of sched. More...
 
void ABTI_sched_finish (ABTI_sched *p_sched)
 
void ABTI_sched_exit (ABTI_sched *p_sched)
 
ABTU_ret_err int ABTI_sched_create_basic (ABT_sched_predef predef, int num_pools, ABT_pool *pools, ABT_sched_config config, ABTI_sched **pp_newsched)
 
void ABTI_sched_free (ABTI_local *p_local, ABTI_sched *p_sched, ABT_bool force_free)
 
ABT_bool ABTI_sched_has_to_stop (ABTI_local **pp_local, ABTI_sched *p_sched)
 
ABTU_ret_err int ABTI_sched_get_migration_pool (ABTI_sched *p_sched, ABTI_pool *source_pool, ABTI_pool **pp_pool)
 
size_t ABTI_sched_get_total_size (ABTI_sched *p_sched)
 
size_t ABTI_sched_get_effective_size (ABTI_local *p_local, ABTI_sched *p_sched)
 
void ABTI_sched_print (ABTI_sched *p_sched, FILE *p_os, int indent, ABT_bool print_sub)
 
void ABTI_sched_reset_id (void)
 

Variables

static ABTD_atomic_uint64 g_sched_id = ABTD_ATOMIC_UINT64_STATIC_INITIALIZER(0)
 

Function Documentation

ABTU_ret_err int ABTI_sched_create_basic ( ABT_sched_predef  predef,
int  num_pools,
ABT_pool pools,
ABT_sched_config  config,
ABTI_sched **  pp_newsched 
)
void ABTI_sched_exit ( ABTI_sched p_sched)

Definition at line 349 of file sched.c.

Referenced by ABT_sched_exit(), and ABTI_xstream_check_events().

void ABTI_sched_finish ( ABTI_sched p_sched)
void ABTI_sched_free ( ABTI_local p_local,
ABTI_sched p_sched,
ABT_bool  force_free 
)
size_t ABTI_sched_get_effective_size ( ABTI_local p_local,
ABTI_sched p_sched 
)
ABTU_ret_err int ABTI_sched_get_migration_pool ( ABTI_sched p_sched,
ABTI_pool source_pool,
ABTI_pool **  pp_pool 
)

Definition at line 567 of file sched.c.

Referenced by ABT_thread_migrate_to_sched(), and thread_migrate_to_xstream().

size_t ABTI_sched_get_size ( ABTI_sched p_sched)

Definition at line 307 of file sched.c.

Referenced by ABT_sched_get_size(), and ABTI_sched_print().

size_t ABTI_sched_get_total_size ( ABTI_sched p_sched)

Definition at line 586 of file sched.c.

Referenced by ABT_sched_get_total_size(), and ABTI_sched_print().

ABT_bool ABTI_sched_has_to_stop ( ABTI_local **  pp_local,
ABTI_sched p_sched 
)

Definition at line 526 of file sched.c.

Referenced by ABT_sched_has_to_stop(), and sched_run().

void ABTI_sched_print ( ABTI_sched p_sched,
FILE *  p_os,
int  indent,
ABT_bool  print_sub 
)

Definition at line 636 of file sched.c.

Referenced by ABT_info_print_sched(), and ABTI_xstream_print().

void ABTI_sched_reset_id ( void  )

Definition at line 719 of file sched.c.

Referenced by init_library().

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(), and ABTI_sched_create_basic().

static ABTI_sched_kind sched_get_kind ( ABT_sched_def def)
inlinestatic

Definition at line 728 of file sched.c.

Referenced by ABTI_sched_print(), and sched_create().

Variable Documentation

Definition at line 718 of file sched.c.