ARGOBOTS  eeae7fe5df42fe3a713b99b647dd296894b12940
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Structures | Macros | Typedefs | Enumerations | Functions
abtd.h File Reference
#include <pthread.h>
#include "abtd_atomic.h"
#include "abtd_context.h"
#include "abtd_stream.h"
#include "abtd_ythread.h"
#include <time.h>
Include dependency graph for abtd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ABTD_xstream_context
 
struct  ABTD_affinity_cpuset
 
struct  ABTD_affinity_id_list
 
struct  ABTD_affinity_parser_list
 

Macros

#define __USE_GNU   1
 
#define ABTD_XSTREAM_LOCAL   __thread
 

Typedefs

typedef struct ABTD_xstream_context ABTD_xstream_context
 
typedef pthread_mutex_t ABTD_xstream_mutex
 
typedef pthread_barrier_t ABTD_xstream_barrier
 
typedef struct ABTD_affinity_cpuset ABTD_affinity_cpuset
 
typedef struct
ABTD_affinity_id_list 
ABTD_affinity_id_list
 
typedef struct
ABTD_affinity_parser_list 
ABTD_affinity_list
 
typedef struct timespec ABTD_time
 

Enumerations

enum  ABTD_xstream_context_state { ABTD_XSTREAM_CONTEXT_STATE_RUNNING, ABTD_XSTREAM_CONTEXT_STATE_WAITING, ABTD_XSTREAM_CONTEXT_STATE_REQ_JOIN, ABTD_XSTREAM_CONTEXT_STATE_REQ_TERMINATE }
 

Functions

void ABTD_env_init (ABTI_global *p_global)
 
ABTU_ret_err int ABTD_xstream_context_create (void *(*f_xstream)(void *), void *p_arg, ABTD_xstream_context *p_ctx)
 
void ABTD_xstream_context_free (ABTD_xstream_context *p_ctx)
 
void ABTD_xstream_context_join (ABTD_xstream_context *p_ctx)
 
void ABTD_xstream_context_revive (ABTD_xstream_context *p_ctx)
 
void ABTD_xstream_context_set_self (ABTD_xstream_context *p_ctx)
 
void ABTD_affinity_init (const char *affinity_str)
 
void ABTD_affinity_finalize (void)
 
ABTU_ret_err int ABTD_affinity_cpuset_read (ABTD_xstream_context *p_ctx, ABTD_affinity_cpuset *p_cpuset)
 
ABTU_ret_err int ABTD_affinity_cpuset_apply (ABTD_xstream_context *p_ctx, const ABTD_affinity_cpuset *p_cpuset)
 
int ABTD_affinity_cpuset_apply_default (ABTD_xstream_context *p_ctx, int rank)
 
void ABTD_affinity_cpuset_destroy (ABTD_affinity_cpuset *p_cpuset)
 
ABTD_affinity_listABTD_affinity_list_create (const char *affinity_str)
 
void ABTD_affinity_list_free (ABTD_affinity_list *p_list)
 
void ABTD_ythread_exit (ABTI_xstream *p_local_xstream, ABTI_ythread *p_ythread)
 
void ABTD_ythread_cancel (ABTI_xstream *p_local_xstream, ABTI_ythread *p_ythread)
 
void ABTD_time_init (void)
 
void ABTD_time_get (ABTD_time *p_time)
 
double ABTD_time_read_sec (ABTD_time *p_time)
 

Macro Definition Documentation

#define __USE_GNU   1

Definition at line 9 of file abtd.h.

#define ABTD_XSTREAM_LOCAL   __thread

Definition at line 41 of file abtd.h.

Typedef Documentation

typedef struct timespec ABTD_time

Definition at line 88 of file abtd.h.

typedef pthread_barrier_t ABTD_xstream_barrier

Definition at line 31 of file abtd.h.

typedef pthread_mutex_t ABTD_xstream_mutex

Definition at line 29 of file abtd.h.

Enumeration Type Documentation

Enumerator
ABTD_XSTREAM_CONTEXT_STATE_RUNNING 
ABTD_XSTREAM_CONTEXT_STATE_WAITING 
ABTD_XSTREAM_CONTEXT_STATE_REQ_JOIN 
ABTD_XSTREAM_CONTEXT_STATE_REQ_TERMINATE 

Definition at line 15 of file abtd.h.

Function Documentation

ABTU_ret_err int ABTD_affinity_cpuset_apply ( ABTD_xstream_context p_ctx,
const ABTD_affinity_cpuset p_cpuset 
)

Definition at line 395 of file abtd_affinity.c.

Referenced by ABT_xstream_set_affinity(), and ABT_xstream_set_cpubind().

int ABTD_affinity_cpuset_apply_default ( ABTD_xstream_context p_ctx,
int  rank 
)
void ABTD_affinity_cpuset_destroy ( ABTD_affinity_cpuset p_cpuset)
ABTU_ret_err int ABTD_affinity_cpuset_read ( ABTD_xstream_context p_ctx,
ABTD_affinity_cpuset p_cpuset 
)

Definition at line 388 of file abtd_affinity.c.

Referenced by ABT_xstream_get_affinity(), and ABT_xstream_get_cpubind().

void ABTD_affinity_finalize ( void  )

Definition at line 365 of file abtd_affinity.c.

Referenced by finailze_library().

void ABTD_affinity_init ( const char *  affinity_str)

Definition at line 266 of file abtd_affinity.c.

Referenced by ABTD_env_init().

ABTD_affinity_list* ABTD_affinity_list_create ( const char *  affinity_str)

Definition at line 254 of file abtd_affinity_parser.c.

Referenced by ABTD_affinity_init().

void ABTD_affinity_list_free ( ABTD_affinity_list p_list)

Definition at line 259 of file abtd_affinity_parser.c.

Referenced by ABTD_affinity_init().

void ABTD_env_init ( ABTI_global p_global)

Definition at line 44 of file abtd_env.c.

Referenced by init_library().

void ABTD_time_get ( ABTD_time p_time)
void ABTD_time_init ( void  )

Definition at line 11 of file abtd_time.c.

Referenced by ABTD_env_init(), and ABTD_time_read_sec().

double ABTD_time_read_sec ( ABTD_time p_time)
ABTU_ret_err int ABTD_xstream_context_create ( void *(*)(void *)  f_xstream,
void *  p_arg,
ABTD_xstream_context p_ctx 
)

Definition at line 48 of file abtd_stream.c.

Referenced by xstream_start().

void ABTD_xstream_context_free ( ABTD_xstream_context p_ctx)

Definition at line 66 of file abtd_stream.c.

Referenced by ABTI_xstream_free().

void ABTD_xstream_context_join ( ABTD_xstream_context p_ctx)

Definition at line 81 of file abtd_stream.c.

Referenced by xstream_join().

void ABTD_xstream_context_revive ( ABTD_xstream_context p_ctx)

Definition at line 97 of file abtd_stream.c.

Referenced by ABT_xstream_revive().

void ABTD_xstream_context_set_self ( ABTD_xstream_context p_ctx)

Definition at line 107 of file abtd_stream.c.

Referenced by ABTI_xstream_start_primary().

void ABTD_ythread_cancel ( ABTI_xstream p_local_xstream,
ABTI_ythread p_ythread 
)

Definition at line 113 of file abtd_ythread.c.

Referenced by xstream_schedule_ythread().

void ABTD_ythread_exit ( ABTI_xstream p_local_xstream,
ABTI_ythread p_ythread 
)

Definition at line 30 of file abtd_ythread.c.

Referenced by ABTI_ythread_exit().