PPL Logo

util/uFcontext.h File Reference

Go to the source code of this file.

Data Structures

struct  uFcontext_stack_t
struct  transfer_t
struct  data_t
struct  uFcontext_t

Typedefs

typedef void * fcontext_t
typedef void(* uFcontext_fn_t )(transfer_t)

Functions

void CthStartThread (transfer_t)
transfer_t jump_fcontext (fcontext_t const to, void *vp)
fcontext_t make_fcontext (void *sp, size_t size, void(*fn)(transfer_t))
transfer_t ontop_fcontext (fcontext_t const to, void *vp, transfer_t(*fn)(transfer_t))
int getJcontext (uFcontext_t *__ucp)
int setJcontext (uFcontext_t *__ucp)
int swapJcontext (uFcontext_t *__oucp, uFcontext_t *__ucp)
void makeJcontext (uFcontext_t *__ucp, uFcontext_fn_t, void(*fn)(void *), void *arg)


Typedef Documentation

typedef void* fcontext_t

Definition at line 7 of file uFcontext.h.

typedef void(* uFcontext_fn_t)(transfer_t)

Definition at line 21 of file uFcontext.h.


Function Documentation

void CthStartThread ( transfer_t   ) 

Definition at line 1777 of file threads.C.

References uFcontext_t::arg, CthSelf(), CthThreadFinished(), data_t::data, transfer_t::data, data, transfer_t::fctx, data_t::from, and uFcontext_t::func.

Here is the call graph for this function:

transfer_t jump_fcontext ( fcontext_t const   to,
void *  vp 
)

Referenced by swapJcontext().

Here is the caller graph for this function:

fcontext_t make_fcontext ( void *  sp,
size_t  size,
void(*)(transfer_t fn 
)

Referenced by makeJcontext().

Here is the caller graph for this function:

transfer_t ontop_fcontext ( fcontext_t const   to,
void *  vp,
transfer_t(*)(transfer_t fn 
)

int getJcontext ( uFcontext_t __ucp  ) 

Definition at line 53 of file uFcontext.h.

Referenced by CthCreateInner().

Here is the caller graph for this function:

int setJcontext ( uFcontext_t __ucp  ) 

Definition at line 57 of file uFcontext.h.

References swapJcontext().

Here is the call graph for this function:

int swapJcontext ( uFcontext_t __oucp,
uFcontext_t __ucp 
)

Definition at line 69 of file uFcontext.h.

References transfer_t::data, data_t::data, transfer_t::fctx, uFcontext_t::fctx, data_t::from, jump_fcontext(), uFcontext_t::param, and PUP::t.

Here is the call graph for this function:

void makeJcontext ( uFcontext_t __ucp,
uFcontext_fn_t  __func,
void(*)(void *)  fn,
void *  arg 
)


Generated on Mon Sep 21 08:12:23 2020 for Charm++ by  doxygen 1.5.5