commit | d46ee8bade08ca3634cf0adf0b95599ba7e5ce6c | [log] [tgz] |
---|---|---|
author | Jason Tsay <jasontsay@google.com> | Thu Jul 14 17:54:41 2011 -0700 |
committer | Jason Tsay <jasontsay@google.com> | Fri Jul 15 12:41:42 2011 -0700 |
tree | 9dca91fc6196cc3bb051b37736688fdc32057180 | |
parent | c0e1e4e6db3e3a6a15ee3fad5138fa87cda63f65 [diff] |
Add resource closing to PrologEnvironment Adds close() to PrologEnvironment that runs all the necessary routines to close any resources when the environment is no longer needed. When computing a resource to store that needs to be closed later, add a cleanup routine using addToCleanup(). Adds the Repository stored value as an example. Refactors ChangeControl to have the environments clean up after themselves. Change-Id: I5d109be40cb9212068624820999d522e71ef6fd6