Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use signal to decouple instr from surf code
[simgrid.git] / src / instr / instr_paje_types.hpp
index 0c9c668..4cc221c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2020. 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. */
@@ -46,7 +46,11 @@ public:
     return cont == children_.end() ? new T(name, this) : static_cast<T*>(cont->second.get());
   }
 
-  void set_calling_container(Container* container) { issuer_ = container; }
+  Type* set_calling_container(Container* container)
+  {
+    issuer_ = container;
+    return this;
+  }
 
   void log_definition(e_event_type event_type);
   void log_definition(Type* source, Type* dest);