X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5954f11308de69ea37c6f6fdd993925f90749984..bff0c1c16b4447b3503aa48d11b15243154ed51a:/src/mc/mc_snapshot.h diff --git a/src/mc/mc_snapshot.h b/src/mc/mc_snapshot.h index 2711b69370..c799698414 100644 --- a/src/mc/mc_snapshot.h +++ b/src/mc/mc_snapshot.h @@ -128,17 +128,6 @@ typedef struct XBT_PRIVATE s_mc_snapshot_stack { int process_index; } s_mc_snapshot_stack_t, *mc_snapshot_stack_t; -typedef struct s_mc_global_t { - simgrid::mc::Snapshot* snapshot; - int prev_pair; - char *prev_req; - int initial_communications_pattern_done; - int recv_deterministic; - int send_deterministic; - char *send_diff; - char *recv_diff; -}s_mc_global_t, *mc_global_t; - namespace simgrid { namespace mc { @@ -186,8 +175,8 @@ static const void* mc_snapshot_get_heap_end(simgrid::mc::Snapshot* snapshot); namespace simgrid { namespace mc { -XBT_PRIVATE simgrid::mc::Snapshot* take_snapshot(int num_state); -XBT_PRIVATE void restore_snapshot(simgrid::mc::Snapshot*); +XBT_PRIVATE std::shared_ptr take_snapshot(int num_state); +XBT_PRIVATE void restore_snapshot(std::shared_ptr snapshot); } } @@ -213,8 +202,8 @@ XBT_PRIVATE int MC_snapshot_memcmp( static inline __attribute__ ((always_inline)) const void* mc_snapshot_get_heap_end(simgrid::mc::Snapshot* snapshot) { - if(snapshot==NULL) - xbt_die("snapshot is NULL"); + if(snapshot==nullptr) + xbt_die("snapshot is nullptr"); return mc_model_checker->process().get_heap()->breakval; }