/** The takeSnapshot function takes a snapshot.
* @return The snapshot identifier.
*/
-
snapshot_id takeSnapshot( ){
#if USE_MPROTECT_SNAPSHOT
for(unsigned int region=0; region<snapshotrecord->lastRegion;region++) {
/** The rollBack function rollback to the given snapshot identifier.
* @param theID is the snapshot identifier to rollback to.
*/
-
void rollBack( snapshot_id theID ){
#if USE_MPROTECT_SNAPSHOT
std::map< void *, bool, std::less< void * >, MyAlloc< std::pair< const void *, bool > > > duplicateMap;
/** The finalize method shuts down the snapshotting system. */
//Subramanian -- remove this function from the external interface and
//have us call it internally
-
void finalize(){
#if !USE_MPROTECT_SNAPSHOT
sTheRecord->mbFinalize = true;
#endif
}
-