X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fe8710da76fc5a0288f02c726f5dcdcc4e2b87c1..ab5814bd4ea6117ecf9ac2df328333e89eb45f5f:/src/kernel/actor/Simcall.hpp?ds=sidebyside diff --git a/src/kernel/actor/Simcall.hpp b/src/kernel/actor/Simcall.hpp index bf7562bde4..0138878bd9 100644 --- a/src/kernel/actor/Simcall.hpp +++ b/src/kernel/actor/Simcall.hpp @@ -1,21 +1,17 @@ -/* Copyright (c) 2007-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2023. 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. */ -#ifndef SIMCALL_HPP -#define SIMCALL_HPP +#ifndef SIMGRID_SIMCALL_HPP +#define SIMGRID_SIMCALL_HPP #include "simgrid/forward.h" -#include "src/kernel/activity/ActivityImpl.hpp" #include "xbt/utility.hpp" -/********************************* Simcalls *********************************/ namespace simgrid::kernel::actor { -/** - * @brief Represents a simcall to the kernel. - */ +/** Contains what's needed to run some code in kernel mode on behalf of an actor */ class Simcall { public: /** All possible simcalls. */ @@ -30,6 +26,14 @@ public: const char* get_cname() const; }; +/** A thing that can be used for an ObjectAccess simcall (getter or setter). */ +class ObjectAccessSimcallItem { +public: + ObjectAccessSimcallItem(); + void take_ownership(); + ActorImpl* simcall_owner_; +}; + } // namespace simgrid::kernel::actor #endif