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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1700 - (view) (download)

1 : jhr 1700 /***** World query operations *****/
2 :    
3 :     //! Return the total number of strands (active+stable) in the world
4 :     int @PREFIX@NumStrands (@PREFIX@World_t *wrld);
5 :    
6 :     //! Return the total number of active strands
7 :     int @PREFIX@NumActive (@PREFIX@World_t *wrld);
8 :    
9 :     //! Return the total number of stable strands
10 :     int @PREFIX@NumStable (@PREFIX@World_t *wrld);
11 :    
12 :     //! Return the strand descriptor
13 :     /* FIXME: does not support multiple strand types! */
14 :     Strand_t *@PREFIX@StrandInfo (@PREFIX@World_t *wrld);
15 :    
16 :     /***** Program running operations *****/
17 :    
18 :     //! Create and allocate the program's world
19 :     @PREFIX@World_t *@PREFIX@InitGlobals ();
20 :    
21 :     //! Create the initial set of strands
22 :     void @PREFIX@Initially (@PREFIX@World_t *wrld);
23 :    
24 :     //! Run the Diderot program
25 :     //! \param wrld the world-state of the Diderot program
26 :     //! \param maxNSteps the limit on the number of super steps; 0 means unlimited
27 :     //! \return the number of steps taken.
28 :     int @PREFIX@Run (@PREFIX@World_t *wrld, int maxNSteps);
29 :    
30 :     //! shutdown and deallocate the world
31 :     void @PREFIX@Shutdown (@PREFIX@World_t *wrld);

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