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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1718 - (download) (annotate)
Sat Mar 10 23:03:02 2012 UTC (8 years, 4 months ago) by jhr
File size: 405 byte(s)
  Working on library support
//! shutdown and deallocate the world
void @PREFIX@Shutdown (@PREFIX@World_t *wrld)
{
  // free strand objects
    for (int i = 0;  i < wrld->numStrands;  i++) {
	FREE (wrld->inState[i]);
	FREE (wrld->outState[i]);
    }

  // free state arrays
    FREE (wrld->inState);
    FREE (wrld->outState);
    FREE (wrld->status);

/* FIXME: what about the err string? */

    FREE (wrld);

} // @PREFIX@Shutdown

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