X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab319b7200020e1280da137a8c77bf57b2588714:/src/simix/MailboxImpl.cpp..1bf8ac043266839571c3a5fa789557fff825db5a:/src/kernel/activity/MailboxImpl.cpp diff --git a/src/simix/MailboxImpl.cpp b/src/kernel/activity/MailboxImpl.cpp similarity index 95% rename from src/simix/MailboxImpl.cpp rename to src/kernel/activity/MailboxImpl.cpp index 7a19d18a32..b8ff61276a 100644 --- a/src/simix/MailboxImpl.cpp +++ b/src/kernel/activity/MailboxImpl.cpp @@ -3,7 +3,7 @@ /* 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 "src/simix/MailboxImpl.hpp" +#include "src/kernel/activity/MailboxImpl.hpp" #include "src/kernel/activity/SynchroComm.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_mailbox, simix, "Mailbox implementation"); @@ -22,7 +22,8 @@ void SIMIX_mailbox_exit() /******************************************************************************/ namespace simgrid { -namespace simix { +namespace kernel { +namespace activity { /** @brief Returns the mailbox of that name, or nullptr */ MailboxImpl* MailboxImpl::byNameOrNull(const char* name) { @@ -35,7 +36,7 @@ MailboxImpl* MailboxImpl::byNameOrCreate(const char* name) /* two processes may have pushed the same mbox_create simcall at the same time */ smx_mailbox_t mbox = static_cast(xbt_dict_get_or_null(mailboxes, name)); if (!mbox) { - mbox = new simgrid::simix::MailboxImpl(name); + mbox = new MailboxImpl(name); XBT_DEBUG("Creating a mailbox at %p with name %s", mbox, name); xbt_dict_set(mailboxes, mbox->name_, mbox, nullptr); } @@ -75,3 +76,4 @@ void MailboxImpl::remove(smx_activity_t activity) } } } +}