SCM Repository
Annotation of /branches/vis12/src/compiler/c-util/fragments/lib-interface-body.in
Parent Directory
|
Revision Log
Revision 1717 - (view) (download)
1 : | jhr | 1706 | |
2 : | jhr | 1717 | /***** Runtime options *****/ |
3 : | |||
4 : | //! Set verbose mode | ||
5 : | void @PREFIX@SetVerbose (@PREFIX@World_t *wrld, bool mode); | ||
6 : | |||
7 : | //! Get verbose mode | ||
8 : | bool @PREFIX@GetVerbose (@PREFIX@World_t *wrld); | ||
9 : | |||
10 : | jhr | 1700 | /***** World query operations *****/ |
11 : | |||
12 : | //! Return the total number of strands (active+stable) in the world | ||
13 : | jhr | 1717 | uint32_t @PREFIX@NumStrands (@PREFIX@World_t *wrld); |
14 : | jhr | 1700 | |
15 : | //! Return the total number of active strands | ||
16 : | jhr | 1717 | uint32_t @PREFIX@NumActive (@PREFIX@World_t *wrld); |
17 : | jhr | 1700 | |
18 : | //! Return the total number of stable strands | ||
19 : | jhr | 1717 | uint32_t @PREFIX@NumStable (@PREFIX@World_t *wrld); |
20 : | jhr | 1700 | |
21 : | //! Return the strand descriptor | ||
22 : | /* FIXME: does not support multiple strand types! */ | ||
23 : | Strand_t *@PREFIX@StrandInfo (@PREFIX@World_t *wrld); | ||
24 : | |||
25 : | /***** Program running operations *****/ | ||
26 : | |||
27 : | //! Create and allocate the program's world | ||
28 : | @PREFIX@World_t *@PREFIX@InitGlobals (); | ||
29 : | |||
30 : | //! Create the initial set of strands | ||
31 : | void @PREFIX@Initially (@PREFIX@World_t *wrld); | ||
32 : | |||
33 : | //! Run the Diderot program | ||
34 : | //! \param wrld the world-state of the Diderot program | ||
35 : | //! \param maxNSteps the limit on the number of super steps; 0 means unlimited | ||
36 : | //! \return the number of steps taken. | ||
37 : | jhr | 1717 | uint32_t @PREFIX@Run (@PREFIX@World_t *wrld, uint32_t maxNSteps); |
38 : | jhr | 1700 | |
39 : | //! shutdown and deallocate the world | ||
40 : | void @PREFIX@Shutdown (@PREFIX@World_t *wrld); |
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |