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

SCM Repository

[diderot] Annotation of /branches/vis12/src/compiler/c-target/fragments/shutdown.in
ViewVC logotype

Annotation of /branches/vis12/src/compiler/c-target/fragments/shutdown.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1872 - (view) (download)

1 : jhr 1718 //! shutdown and deallocate the world
2 :     void @PREFIX@Shutdown (@PREFIX@World_t *wrld)
3 :     {
4 : jhr 1862 biffMsgNix (wrld->errors);
5 : nseltzer 1870 FreeGlobals (wrld);
6 : jhr 1862 FREE (wrld->globals);
7 :     #ifdef DIDEROT_TARGET_PARALLEL
8 :     FREE (wrld->sched);
9 :     #endif
10 :    
11 : jhr 1718 // free strand objects
12 :     for (int i = 0; i < wrld->numStrands; i++) {
13 :     FREE (wrld->inState[i]);
14 :     FREE (wrld->outState[i]);
15 :     }
16 :    
17 :     // free state arrays
18 :     FREE (wrld->inState);
19 :     FREE (wrld->outState);
20 :     FREE (wrld->status);
21 :    
22 : jhr 1872 // free axis info
23 : nseltzer 1870 FREE (wrld->base);
24 :     FREE (wrld->size);
25 :    
26 : jhr 1718 FREE (wrld);
27 :    
28 :     } // @PREFIX@Shutdown

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