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

SCM Repository

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

View of /branches/vis12/src/compiler/c-util/fragments/lib-interface-body.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1706 - (download) (annotate)
Wed Mar 7 12:06:48 2012 UTC (7 years, 4 months ago) by jhr
File size: 1043 byte(s)
  more work on library support
/***** World query operations *****/

//! Return the total number of strands (active+stable) in the world
int @PREFIX@NumStrands (@PREFIX@World_t *wrld);

//! Return the total number of active strands
int @PREFIX@NumActive (@PREFIX@World_t *wrld);

//! Return the total number of stable strands
int @PREFIX@NumStable (@PREFIX@World_t *wrld);

//! Return the strand descriptor
/* FIXME: does not support multiple strand types! */
Strand_t *@PREFIX@StrandInfo (@PREFIX@World_t *wrld);

/***** Program running operations *****/

//! Create and allocate the program's world
@PREFIX@World_t *@PREFIX@InitGlobals ();

//! Create the initial set of strands
void @PREFIX@Initially (@PREFIX@World_t *wrld);

//! Run the Diderot program
//! \param wrld the world-state of the Diderot program
//! \param maxNSteps the limit on the number of super steps; 0 means unlimited
//! \return the number of steps taken.
int @PREFIX@Run (@PREFIX@World_t *wrld, int maxNSteps);

//! shutdown and deallocate the world
void @PREFIX@Shutdown (@PREFIX@World_t *wrld);

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