engine->set_maestro(maestro);
}
+/** (in kernel mode) unpack the simcall and activate the handler */
+void ActorImpl::simcall_handle(int times_considered)
+{
+ XBT_DEBUG("Handling simcall %p: %s(%ld) %s", &simcall_, simcall_.issuer_->get_cname(), simcall_.issuer_->get_pid(),
+ (simcall_.observer_ != nullptr ? simcall_.observer_->to_string().c_str() : simcall_.get_cname()));
+ if (simcall_.observer_ != nullptr)
+ simcall_.observer_->prepare(times_considered);
+ if (wannadie())
+ return;
+
+ xbt_assert(simcall_.call_ != Simcall::Type::NONE, "Asked to do the noop syscall on %s@%s", get_cname(),
+ get_host()->get_cname());
+
+ (*simcall_.code_)();
+ if (simcall_.call_ == Simcall::Type::RUN_ANSWERED)
+ simcall_answer();
+}
+
} // namespace simgrid::kernel::actor
#include "src/kernel/context/Context.hpp"
#include "xbt/log.h"
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(ker_simcall, kernel, "transmuting from user request into kernel handlers");
-
namespace simgrid::kernel::actor {
-/** @private
- * @brief (in kernel mode) unpack the simcall and activate the handler
- *
- */
-void ActorImpl::simcall_handle(int times_considered)
-{
- XBT_DEBUG("Handling simcall %p: %s(%ld) %s", &simcall_, simcall_.issuer_->get_cname(), simcall_.issuer_->get_pid(),
- (simcall_.observer_ != nullptr ? simcall_.observer_->to_string().c_str() : simcall_.get_cname()));
- if (simcall_.observer_ != nullptr)
- simcall_.observer_->prepare(times_considered);
- if (wannadie())
- return;
-
- xbt_assert(simcall_.call_ != Simcall::Type::NONE, "Asked to do the noop syscall on %s@%s", get_cname(),
- get_host()->get_cname());
-
- (*simcall_.code_)();
- if (simcall_.call_ == Simcall::Type::RUN_ANSWERED)
- simcall_answer();
-}
-
/** @brief returns a printable string representing a simcall */
const char* Simcall::get_cname() const
{
#include "src/kernel/activity/ActivityImpl.hpp"
#include "xbt/utility.hpp"
-/********************************* Simcalls *********************************/
namespace simgrid::kernel::actor {
/**
#define SIMIX_H_NO_DEPRECATED_WARNING // avoid deprecation warning on include (remove with XBT_ATTRIB_DEPRECATED_v335)
#include <simgrid/simix.h>
-XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(ker_simcall);
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(ker_simcall, kernel, "transmuting from user request into kernel handlers");
/**
* @ingroup simix_comm_management