public BThreadSyncSnapshot copyWith ( Object aContinuation , SyncStatement aStatement ) { BThreadSyncSnapshot retVal = new BThreadSyncSnapshot ( name , entryPoint ) ; retVal . continuation = aContinuation ; retVal . setInterruptHandler ( interruptHandler ) ; retVal . syncStatement = aStatement ; aStatement . setBthread ( retVal ) ; return retVal ; }
Creates the next snapshot of the BThread in a given run .