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 1862 - (view) (download)

1 : jhr 1706
2 : jhr 1700 /***** World query operations *****/
3 :    
4 :     //! Return the total number of strands (active+stable) in the world
5 : jhr 1717 uint32_t @PREFIX@NumStrands (@PREFIX@World_t *wrld);
6 : jhr 1700
7 :     //! Return the total number of active strands
8 : jhr 1717 uint32_t @PREFIX@NumActive (@PREFIX@World_t *wrld);
9 : jhr 1700
10 :     //! Return the total number of stable strands
11 : jhr 1717 uint32_t @PREFIX@NumStable (@PREFIX@World_t *wrld);
12 : jhr 1700
13 : jhr 1862 //! Return true if there are any recorded error conditions
14 :     bool @PREFIX@AnyErrors (@PREFIX@World_t *wrld);
15 :    
16 :     //! Return the pending error message (if any). This call clears the pending error
17 :     //! state.
18 :     char *@PREFIX@GetErrors (@PREFIX@World_t *wrld);
19 :    
20 : jhr 1700 /***** Program running operations *****/
21 :    
22 :     //! Create and allocate the program's world
23 : jhr 1718 @PREFIX@World_t *@PREFIX@Init ();
24 : jhr 1700
25 : jhr 1718 //! Initiaize the globals and create the initial set of strands
26 :     //! \param wrld the world-state of the Diderot program
27 :     //! \return true if there are any errors
28 :     bool @PREFIX@Initially (@PREFIX@World_t *wrld);
29 : jhr 1700
30 :     //! Run the Diderot program
31 :     //! \param wrld the world-state of the Diderot program
32 :     //! \param maxNSteps the limit on the number of super steps; 0 means unlimited
33 :     //! \return the number of steps taken.
34 : jhr 1717 uint32_t @PREFIX@Run (@PREFIX@World_t *wrld, uint32_t maxNSteps);
35 : jhr 1700
36 :     //! shutdown and deallocate the world
37 :     void @PREFIX@Shutdown (@PREFIX@World_t *wrld);

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