X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab8e2fe95944fb998edd6e95d1022a05175c4f92..ae701792ae00d4b822b890780619878e0a624980:/src/mc/mc_snapshot.h diff --git a/src/mc/mc_snapshot.h b/src/mc/mc_snapshot.h index 38173265fa..8fbba24c69 100644 --- a/src/mc/mc_snapshot.h +++ b/src/mc/mc_snapshot.h @@ -1,5 +1,4 @@ -/* Copyright (c) 2007-2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -128,23 +127,12 @@ 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 { - std::shared_ptr snapshot; - int prev_pair = 0; - std::string prev_req; - int initial_communications_pattern_done = 0; - int recv_deterministic = 0; - int send_deterministic = 0; - char *send_diff = nullptr; - char *recv_diff = nullptr; -}s_mc_global_t, *mc_global_t; - namespace simgrid { namespace mc { class XBT_PRIVATE Snapshot final : public AddressSpace { public: - Snapshot(Process* process); + Snapshot(Process* process, int num_state); ~Snapshot(); const void* read_bytes(void* buffer, std::size_t size, RemotePtr address, int process_index = ProcessIndexAny,