SCM Repository
Annotation of /branches/vis12/src/compiler/c-util/fragments/lib-interface-body.in
Parent Directory
|
Revision Log
Revision 1844 - (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 : | /***** Program running operations *****/ | ||
14 : | |||
15 : | //! Create and allocate the program's world | ||
16 : | jhr | 1718 | @PREFIX@World_t *@PREFIX@Init (); |
17 : | jhr | 1700 | |
18 : | jhr | 1718 | //! Initiaize the globals and create the initial set of strands |
19 : | //! \param wrld the world-state of the Diderot program | ||
20 : | //! \return true if there are any errors | ||
21 : | bool @PREFIX@Initially (@PREFIX@World_t *wrld); | ||
22 : | jhr | 1700 | |
23 : | //! Run the Diderot program | ||
24 : | //! \param wrld the world-state of the Diderot program | ||
25 : | //! \param maxNSteps the limit on the number of super steps; 0 means unlimited | ||
26 : | //! \return the number of steps taken. | ||
27 : | jhr | 1717 | uint32_t @PREFIX@Run (@PREFIX@World_t *wrld, uint32_t maxNSteps); |
28 : | jhr | 1700 | |
29 : | //! shutdown and deallocate the world | ||
30 : | void @PREFIX@Shutdown (@PREFIX@World_t *wrld); |
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |