Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill popping_bodies.cpp
[simgrid.git] / src / simix / popping_bodies.cpp
diff --git a/src/simix/popping_bodies.cpp b/src/simix/popping_bodies.cpp
deleted file mode 100644 (file)
index 89e4a5e..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/**********************************************************************/
-/* File generated by src/simix/simcalls.py from src/simix/simcalls.in */
-/*                                                                    */
-/*                    DO NOT EVER CHANGE THIS FILE                    */
-/*                                                                    */
-/* change simcalls specification in src/simix/simcalls.in             */
-/* Copyright (c) 2014-2022. The SimGrid Team. All rights reserved.    */
-/**********************************************************************/
-
-/*
- * Note that the name comes from http://en.wikipedia.org/wiki/Popping
- * Indeed, the control flow is doing a strange dance in there.
- *
- * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
- */
-
-#include "src/kernel/EngineImpl.hpp"
-#include "src/kernel/actor/ActorImpl.hpp"
-#include "src/mc/mc_forward.hpp"
-#include "xbt/ex.h"
-#include <functional>
-#include <simgrid/simix.hpp>
-#include <xbt/log.h>
-/** @cond */ // Please Doxygen, don't look at this
-
-XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix);
-
-using simgrid::simix::Simcall;
-
-template<class R, class... T>
-inline static R simcall(Simcall call, T const&... t)
-{
-  auto self = simgrid::kernel::actor::ActorImpl::self();
-  simgrid::simix::marshal(&self->simcall_, call, t...);
-  if (not simgrid::kernel::EngineImpl::get_instance()->is_maestro(self)) {
-    XBT_DEBUG("Yield process '%s' on simcall %s", self->get_cname(), SIMIX_simcall_name(self->simcall_));
-    self->yield();
-  } else {
-    self->simcall_handle(0);
-  }
-  return simgrid::simix::unmarshal<R>(self->simcall_.result_);
-}
-
-inline static void simcall_BODY_run_kernel(std::function<void()> const* code)
-{
-  if (false) /* Go to that function to follow the code flow through the simcall barrier */
-    SIMIX_run_kernel(code);
-  return simcall<void, std::function<void()> const*>(Simcall::RUN_KERNEL, code);
-}
-
-inline static void simcall_BODY_run_blocking(std::function<void()> const* code)
-{
-  if (false) /* Go to that function to follow the code flow through the simcall barrier */
-    SIMIX_run_blocking(code);
-  return simcall<void, std::function<void()> const*>(Simcall::RUN_BLOCKING, code);
-}
-/** @endcond */