Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move PoC blocking_simcall.hpp from public include/ to teshsuite/.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 26 Mar 2021 13:55:46 +0000 (14:55 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 26 Mar 2021 14:07:10 +0000 (15:07 +0100)
MANIFEST.in
include/simgrid/simix.hpp
src/simix/libsmx.cpp
teshsuite/kernel/CMakeLists.txt
teshsuite/kernel/simcall-generic/blocking_simcall.hpp [moved from include/simgrid/simix/blocking_simcall.hpp with 98% similarity]
teshsuite/kernel/simcall-generic/simcall-generic.cpp
tools/cmake/DefinePackages.cmake

index 75b9be4..231c235 100644 (file)
@@ -651,6 +651,7 @@ include teshsuite/kernel/context-defaults/factory_boost.tesh
 include teshsuite/kernel/context-defaults/factory_raw.tesh
 include teshsuite/kernel/context-defaults/factory_thread.tesh
 include teshsuite/kernel/context-defaults/factory_ucontext.tesh
+include teshsuite/kernel/simcall-generic/blocking_simcall.hpp
 include teshsuite/kernel/simcall-generic/simcall-generic.cpp
 include teshsuite/kernel/simcall-generic/simcall-generic.tesh
 include teshsuite/kernel/stack-overflow/stack-overflow.cpp
@@ -2005,7 +2006,6 @@ include include/simgrid/semaphore.h
 include include/simgrid/simdag.h
 include include/simgrid/simix.h
 include include/simgrid/simix.hpp
-include include/simgrid/simix/blocking_simcall.hpp
 include include/simgrid/smpi/smpi_replay.hpp
 include include/simgrid/version.h.in
 include include/simgrid/vm.h
index 03e785c..3e9f2cd 100644 (file)
@@ -98,6 +98,8 @@ auto simcall_blocking(F&& code, Observer* observer) -> decltype(observer->get_re
 namespace simgrid {
 namespace simix {
 
+XBT_PUBLIC void unblock(smx_actor_t process);
+
 inline auto& simix_timers() // avoid static initialization order fiasco
 {
   using TimerQelt = std::pair<double, Timer*>;
index 3ea6d4f..41bb5b9 100644 (file)
@@ -11,7 +11,6 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "mc/mc.h"
-#include "simgrid/simix/blocking_simcall.hpp"
 #include "src/kernel/activity/CommImpl.hpp"
 #include "src/kernel/activity/ConditionVariableImpl.hpp"
 #include "src/kernel/activity/ExecImpl.hpp"
index b4b7554..2ecaaad 100644 (file)
@@ -47,6 +47,6 @@ endforeach()
 
 
 # Pack the files in the archive
-set(teshsuite_src ${teshsuite_src}  PARENT_SCOPE)
+set(teshsuite_src ${teshsuite_src}  ${CMAKE_CURRENT_SOURCE_DIR}/simcall-generic/blocking_simcall.hpp PARENT_SCOPE)
 set(tesh_files    ${tesh_files}     PARENT_SCOPE)
 set(xml_files     ${xml_files}      PARENT_SCOPE)
@@ -21,8 +21,6 @@
 namespace simgrid {
 namespace simix {
 
-XBT_PUBLIC void unblock(smx_actor_t process);
-
 /** Execute some code in kernel mode and wakes up the actor when
  *  the result is available.
  *
@@ -74,8 +72,7 @@ template <class F> auto kernel_sync(F code) -> decltype(code().get())
 // - SharedFuture
 // - simgrid::simix::when_all - wait for all future to be ready (this one is simple!)
 // - simgrid::simix::when_any - wait for any future to be ready
-template <class T>
-class Future {
+template <class T> class Future {
 public:
   Future() = default;
   explicit Future(simgrid::kernel::Future<T> future) : future_(std::move(future)) {}
index 3e9adcf..db7ecb6 100644 (file)
 #include <simgrid/s4u/Actor.hpp>
 #include <simgrid/s4u/Engine.hpp>
 #include <simgrid/simix.hpp>
-#include <simgrid/simix/blocking_simcall.hpp>
 #include <xbt/log.h>
 
+#include "blocking_simcall.hpp"
+
 XBT_LOG_NEW_DEFAULT_CATEGORY(test, "my log messages");
 
 namespace example {
index a907aa8..560ef21 100644 (file)
@@ -685,7 +685,6 @@ set(headers_to_install
   include/simgrid/forward.h
   include/simgrid/simix.h
   include/simgrid/simix.hpp
-  include/simgrid/simix/blocking_simcall.hpp
   include/simgrid/kernel/future.hpp
   include/simgrid/disk.h
   include/simgrid/host.h