Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis12/src/compiler/c-target/fragments/c-body.in
ViewVC logotype

View of /branches/vis12/src/compiler/c-target/fragments/c-body.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1717 - (download) (annotate)
Sat Mar 10 19:44:29 2012 UTC (8 years, 6 months ago) by jhr
File size: 874 byte(s)
  Working on library support
/***** Runtime options *****/

//! Set verbose mode
void @PREFIX@SetVerbose (@PREFIX@World_t *wrld, bool mode)
{
    wrld->verboseFlg = mode;
}

//! Get verbose mode
bool @PREFIX@GetVerbose (@PREFIX@World_t *wrld)
{
    return wrld->verboseFlg;
}

/***** World query operations *****/

//! Return the total number of strands (active+stable) in the world
uint32_t @PREFIX@NumStrands (@PREFIX@World_t *wrld)
{
    return wrld->numStrands;
}

//! Return the total number of active strands
uint32_t @PREFIX@NumActive (@PREFIX@World_t *wrld)
{
    return 0; /* FIXME */
}

//! Return the total number of stable strands
uint32_t @PREFIX@NumStable (@PREFIX@World_t *wrld)
{
    return 0; /* FIXME */
}

//! Return the strand descriptor
/* FIXME: does not support multiple strand types! */
Strand_t *@PREFIX@StrandInfo (@PREFIX@World_t *wrld)
{
    return &(wrld->strandDesc[0]);
}

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0