include src/simix/simcalls.in
include src/simix/simcalls.py
include src/simix/smx_context.cpp
-include src/simix/smx_global.cpp
include src/smpi/bindings/smpi_f77.cpp
include src/smpi/bindings/smpi_f77_coll.cpp
include src/smpi/bindings/smpi_f77_comm.cpp
}
} // namespace kernel
} // namespace simgrid
+
+void SIMIX_run() // XBT_ATTRIB_DEPRECATED_v332
+{
+ simgrid::kernel::EngineImpl::get_instance()->run();
+}
} // namespace kernel
} // namespace simgrid
-/* needs to be public and without simcall because it is called
- by exceptions and logging events */
+/* needs to be public and without simcall because it is called by exceptions and logging events */
const char* SIMIX_process_self_get_name()
{
return SIMIX_is_maestro() ? "maestro" : simgrid::kernel::actor::ActorImpl::self()->get_cname();
{
return simgrid::kernel::actor::ActorImpl::by_pid(pid);
}
+
+int SIMIX_is_maestro()
+{
+ const auto* self = simgrid::kernel::actor::ActorImpl::self();
+ return self == nullptr || simgrid::kernel::EngineImpl::get_instance()->is_maestro(self);
+}
} // namespace s4u
} // namespace simgrid
+double SIMIX_get_clock() // XBT_ATTRIB_DEPRECATED_v332
+{
+ return simgrid::s4u::Engine::get_clock();
+}
+
/* **************************** Public C interface *************************** */
void simgrid_init(int* argc, char** argv)
{
#include <boost/core/demangle.hpp>
#include <string>
#include <typeinfo>
+XBT_LOG_NEW_CATEGORY(simix, "All SIMIX categories");
/**
* @ingroup simix_host_management
+++ /dev/null
-/* 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. */
-
-#include "simgrid/s4u/Engine.hpp"
-#include "src/kernel/EngineImpl.hpp"
-
-XBT_LOG_NEW_CATEGORY(simix, "All SIMIX categories");
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_kernel, simix, "Logging specific to SIMIX (kernel)");
-
-/**
- * @ingroup SIMIX_API
- * @brief A clock (in second).
- *
- * @return Return the clock.
- */
-double SIMIX_get_clock() // XBT_ATTRIB_DEPRECATED_v332
-{
- return simgrid::s4u::Engine::get_clock();
-}
-
-void SIMIX_run() // XBT_ATTRIB_DEPRECATED_v332
-{
- simgrid::kernel::EngineImpl::get_instance()->run();
-}
-
-int SIMIX_is_maestro()
-{
- const simgrid::kernel::actor::ActorImpl* self = SIMIX_process_self();
- return self == nullptr || simgrid::kernel::EngineImpl::get_instance()->is_maestro(self);
-}
src/kernel/context/ContextSwapped.hpp
src/kernel/context/ContextThread.cpp
src/kernel/context/ContextThread.hpp
- src/simix/smx_global.cpp
src/simix/popping.cpp
src/kernel/activity/ActivityImpl.cpp
src/kernel/activity/ActivityImpl.hpp