util/uJcontext.h File Reference

Go to the source code of this file.

Data Structures

struct  uJcontext_stack_t
 Describes the stack for a uJcontext flow of control. More...
struct  uJcontext_t
 Represents a uJcontext flow of control. More...

Typedefs

typedef void(*) uJcontext_fn_t (void *a1, void *a2)
 Start a uJcontext flow of control.
typedef void(*) uJcontext_swap_fn_t (struct uJcontext_t *newContext)
 Called before switching to a uJcontext flow of control.

Functions

int getJcontext (uJcontext_t *__ucp)
int setJcontext (const uJcontext_t *__ucp)
int swapJcontext (uJcontext_t *__oucp, const uJcontext_t *__ucp)
void makeJcontext (uJcontext_t *__ucp, uJcontext_fn_t func, int __argc, void *a1, void *a2)


Typedef Documentation

typedef void(*) uJcontext_fn_t(void *a1, void *a2)

Start a uJcontext flow of control.

Definition at line 22 of file uJcontext.h.

typedef void(*) uJcontext_swap_fn_t(struct uJcontext_t *newContext)

Called before switching to a uJcontext flow of control.

Definition at line 42 of file uJcontext.h.


Function Documentation

int getJcontext ( uJcontext_t __ucp  ) 

Definition at line 39 of file uJcontext.c.

References uJcontext_t::_uc_args, uJcontext_t::_uc_fn, getStack(), uJcontext_stack_t::ss_flags, uJcontext_stack_t::ss_size, uJcontext_stack_t::ss_sp, uJcontext_t::uc_flags, uJcontext_t::uc_link, uJcontext_t::uc_sigmask, uJcontext_t::uc_stack, and uJcontext_t::uc_swap.

Referenced by CthCreateInner().

int setJcontext ( const uJcontext_t __ucp  ) 

Definition at line 54 of file uJcontext.c.

References printf(), setJcontext(), uJcontext_t::uc_swap, and VERBOSE().

Referenced by setJcontext(), and swapJcontext().

int swapJcontext ( uJcontext_t __oucp,
const uJcontext_t __ucp 
)

Definition at line 125 of file uJcontext.c.

References uJcontext_t::_uc_jmp_buf, printf(), setJcontext(), and VERBOSE().

void makeJcontext ( uJcontext_t __ucp,
uJcontext_fn_t  func,
int  __argc,
void *  a1,
void *  a2 
)

Definition at line 144 of file uJcontext.c.

References uJcontext_t::_uc_args, uJcontext_t::_uc_fn, printf(), and VERBOSE().

Referenced by CthCreateInner().


Generated on Sun Jun 29 13:29:36 2008 for Charm++ by  doxygen 1.5.1