Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
less calls to simix.h + cosmetics
authorSUTER Frederic <frederic.suter@cc.in2p3.fr>
Fri, 1 Oct 2021 11:21:08 +0000 (13:21 +0200)
committerSUTER Frederic <frederic.suter@cc.in2p3.fr>
Wed, 6 Oct 2021 07:57:34 +0000 (09:57 +0200)
include/simgrid/s4u/Semaphore.hpp
src/bindings/java/JavaContext.hpp
src/bindings/java/jmsg.cpp
src/kernel/timer/Timer.cpp

index 8520d61..d3e2c58 100644 (file)
@@ -7,7 +7,6 @@
 #define SIMGRID_S4U_SEMAPHORE_HPP
 
 #include <simgrid/forward.h>
-#include <simgrid/simix.h>
 
 namespace simgrid {
 namespace s4u {
index 938819d..70873a5 100644 (file)
@@ -11,7 +11,6 @@
 #include <functional>
 #include <jni.h>
 
-#include "simgrid/simix.h"
 #include "src/kernel/context/ContextThread.hpp"
 
 #include "jmsg.hpp"
@@ -23,7 +22,7 @@ namespace context {
 class JavaContext;
 class JavacontextFactory;
 
-class JavaContext : public simgrid::kernel::context::SerialThreadContext {
+class JavaContext : public SerialThreadContext {
 public:
   // The java process instance bound with the msg process structure:
   jobject jprocess_ = nullptr;
@@ -31,13 +30,13 @@ public:
   JNIEnv* jenv_           = nullptr;
 
   friend class JavaContextFactory;
-  JavaContext(std::function<void()>&& code, smx_actor_t actor);
+  JavaContext(std::function<void()>&& code, actor::ActorImpl* actor);
 
   void start_hook() override;
   void stop_hook() override;
 };
 
-class JavaContextFactory : public simgrid::kernel::context::ContextFactory {
+class JavaContextFactory : public ContextFactory {
 public:
   JavaContextFactory();
   ~JavaContextFactory() override;
@@ -45,9 +44,11 @@ public:
   void run_all() override;
 };
 
-XBT_PRIVATE simgrid::kernel::context::ContextFactory* java_factory();
+XBT_PRIVATE ContextFactory* java_factory();
 XBT_PRIVATE void java_main_jprocess(jobject process);
 
-}}} // namespace simgrid::kernel::context
+} // namespace context
+} // namespace kernel
+} // namespace simgrid
 
 #endif /* SIMGRID_JAVA_JAVA_CONTEXT_HPP */
index 70d99fa..010838b 100644 (file)
@@ -14,7 +14,6 @@
 #include "simgrid/plugins/file_system.h"
 #include "simgrid/plugins/live_migration.h"
 #include "simgrid/plugins/load.h"
-#include "simgrid/simix.h"
 
 #include "simgrid/s4u/Actor.hpp"
 #include "simgrid/s4u/Host.hpp"
index c0f475f..f9d85e7 100644 (file)
@@ -6,7 +6,6 @@
 
 #include <simgrid/kernel/Timer.hpp>
 #include <simgrid/s4u/Engine.hpp>
-#include <simgrid/simix.h>
 
 namespace simgrid {
 namespace kernel {