ARGOBOTS  1.1
Data Structures | Macros | Typedefs | Functions
abtd_fcontext.h File Reference

Go to the source code of this file.

Data Structures

struct  ABTD_ythread_context
 

Macros

#define ABT_API_PRIVATE
 

Typedefs

typedef void * fcontext_t
 

Functions

fcontext_t make_fcontext (void *sp, size_t size, void(*thread_func)(void *)) ABT_API_PRIVATE
 
void * jump_fcontext (fcontext_t *old, fcontext_t new, void *arg) ABT_API_PRIVATE
 
void * take_fcontext (fcontext_t *old, fcontext_t new, void *arg) ABT_API_PRIVATE
 
void init_and_call_fcontext (void *p_arg, void(*f_thread)(void *), void *p_stacktop, fcontext_t *old)
 
static void ABTD_ythread_context_make (ABTD_ythread_context *p_ctx, void *sp, size_t size, void(*thread_func)(void *))
 
static void ABTD_ythread_context_jump (ABTD_ythread_context *p_old, ABTD_ythread_context *p_new, void *arg)
 
static ABTU_noreturn void ABTD_ythread_context_take (ABTD_ythread_context *p_old, ABTD_ythread_context *p_new, void *arg)
 
static void ABTD_ythread_context_init_and_call (ABTD_ythread_context *p_ctx, void *sp, void(*thread_func)(void *), void *arg)
 

Macro Definition Documentation

◆ ABT_API_PRIVATE

#define ABT_API_PRIVATE

Definition at line 14 of file abtd_fcontext.h.

Typedef Documentation

◆ fcontext_t

typedef void* fcontext_t

Definition at line 9 of file abtd_fcontext.h.

Function Documentation

◆ ABTD_ythread_context_init_and_call()

static void ABTD_ythread_context_init_and_call ( ABTD_ythread_context p_ctx,
void *  sp,
void(*)(void *)  thread_func,
void *  arg 
)
inlinestatic

Definition at line 114 of file abtd_fcontext.h.

◆ ABTD_ythread_context_jump()

static void ABTD_ythread_context_jump ( ABTD_ythread_context p_old,
ABTD_ythread_context p_new,
void *  arg 
)
inlinestatic

Definition at line 83 of file abtd_fcontext.h.

◆ ABTD_ythread_context_make()

static void ABTD_ythread_context_make ( ABTD_ythread_context p_ctx,
void *  sp,
size_t  size,
void(*)(void *)  thread_func 
)
inlinestatic

Definition at line 69 of file abtd_fcontext.h.

◆ ABTD_ythread_context_take()

static ABTU_noreturn void ABTD_ythread_context_take ( ABTD_ythread_context p_old,
ABTD_ythread_context p_new,
void *  arg 
)
inlinestatic

Definition at line 99 of file abtd_fcontext.h.

◆ init_and_call_fcontext()

void init_and_call_fcontext ( void *  p_arg,
void(*)(void *)  f_thread,
void *  p_stacktop,
fcontext_t old 
)

◆ jump_fcontext()

void* jump_fcontext ( fcontext_t old,
fcontext_t  new,
void *  arg 
)

◆ make_fcontext()

fcontext_t make_fcontext ( void *  sp,
size_t  size,
void(*)(void *)  thread_func 
)

◆ take_fcontext()

void* take_fcontext ( fcontext_t old,
fcontext_t  new,
void *  arg 
)