]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/mc_pattern.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
porivate functions
[simgrid.git] / src / mc / mc_pattern.hpp
index 6909e11b66647bf6269efbd93a3a19a5613176e7..168527dcccc9cdd6072d2329a69bba85afe1d0ea 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2021. 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. */
@@ -20,7 +20,7 @@ enum class PatternCommunicationType {
 class PatternCommunication {
 public:
   int num = 0;
-  simgrid::kernel::activity::CommImpl* comm_addr;
+  simgrid::mc::RemotePtr<simgrid::kernel::activity::CommImpl> comm_addr;
   PatternCommunicationType type = PatternCommunicationType::send;
   unsigned long src_proc        = 0;
   unsigned long dst_proc        = 0;
@@ -31,7 +31,7 @@ public:
   int tag   = 0;
   int index = 0;
 
-  PatternCommunication() { std::memset(&comm_addr, 0, sizeof(comm_addr)); }
+  PatternCommunication() { comm_addr = simgrid::mc::RemotePtr<simgrid::kernel::activity::CommImpl>(); }
 
   PatternCommunication dup() const
   {