stp.c File Reference

#include "copyright.h"
#include "qt.h"
#include "stp.h"

Include dependency graph for stp.c:

Go to the source code of this file.

Classes

struct  stp_t
struct  stp_q_t

Defines

#define NULL   0
#define STP_STKSIZE   (0x1000)
#define STP_STKALIGN(sp, alignment)   ((void *)((((qt_word_t)(sp)) + (alignment) - 1) & ~((alignment)-1)))

Functions

void * malloc (unsigned size)
void perror (char const *msg)
void free (void *sto)
void * xmalloc (unsigned size)
static void stp_qinit (stp_q_t *q)
static stp_tstp_qget (stp_q_t *q)
static void stp_qput (stp_q_t *q, stp_t *t)
static void * stp_starthelp (qt_t *old, void *ignore0, void *ignore1)
static void stp_only (void *pu, void *pt, qt_userf_t *f)
static void * stp_aborthelp (qt_t *sp, void *old, void *null)
static void * stp_yieldhelp (qt_t *sp, void *old, void *blockq)
void stp_init ()
void stp_start ()
void stp_create (stp_userf_t *f, void *pu)
void stp_abort (void)
void stp_yield ()

Variables

static stp_q_t stp_global_runq
static stp_t stp_global_main
static stp_tstp_global_curr


Define Documentation

#define NULL   0

Definition at line 6 of file stp.c.

#define STP_STKALIGN ( sp,
alignment   )     ((void *)((((qt_word_t)(sp)) + (alignment) - 1) & ~((alignment)-1)))

Definition at line 12 of file stp.c.

#define STP_STKSIZE   (0x1000)

Definition at line 9 of file stp.c.


Function Documentation

void free ( void *  sto  ) 

void* malloc ( unsigned  size  ) 

void perror ( char const *  msg  ) 

void stp_abort ( void   ) 

Definition at line 161 of file stp.c.

static void * stp_aborthelp ( qt_t sp,
void *  old,
void *  null 
) [static]

Definition at line 173 of file stp.c.

void stp_create ( stp_userf_t f,
void *  pu 
)

Definition at line 136 of file stp.c.

void stp_init (  ) 

Definition at line 108 of file stp.c.

static void stp_only ( void *  pu,
void *  pt,
qt_userf_t f 
) [static]

Definition at line 151 of file stp.c.

static stp_t* stp_qget ( stp_q_t q  )  [static]

Definition at line 70 of file stp.c.

static void stp_qinit ( stp_q_t q  )  [static]

Definition at line 63 of file stp.c.

static void stp_qput ( stp_q_t q,
stp_t t 
) [static]

Definition at line 87 of file stp.c.

void stp_start ( void   ) 

Definition at line 115 of file stp.c.

static void * stp_starthelp ( qt_t old,
void *  ignore0,
void *  ignore1 
) [static]

Definition at line 127 of file stp.c.

void stp_yield ( void   ) 

Definition at line 182 of file stp.c.

static void * stp_yieldhelp ( qt_t sp,
void *  old,
void *  blockq 
) [static]

Definition at line 194 of file stp.c.

void* xmalloc ( unsigned  size  ) 

Definition at line 48 of file stp.c.


Variable Documentation

Definition at line 99 of file stp.c.

Definition at line 98 of file stp.c.

Definition at line 97 of file stp.c.


Generated on Wed Jan 21 15:32:11 2009 for SystemC by  doxygen 1.5.5