]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/actor/Simcall.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Concatenate nested namespaces (sonar).
[simgrid.git] / src / kernel / actor / Simcall.cpp
index 4fa6c44f4911b1d96a310b0b35507637543bd962..156636dbc6e596644cb5a9328bce4753592fc963 100644 (file)
@@ -12,9 +12,7 @@
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(ker_simcall, kernel, "transmuting from user request into kernel handlers");
 
-namespace simgrid {
-namespace kernel {
-namespace actor {
+namespace simgrid::kernel::actor {
 
 /** @private
  * @brief (in kernel mode) unpack the simcall and activate the handler
@@ -25,7 +23,7 @@ void ActorImpl::simcall_handle(int times_considered)
   XBT_DEBUG("Handling simcall %p: %s", &simcall_, simcall_.get_cname());
   if (simcall_.observer_ != nullptr)
     simcall_.observer_->prepare(times_considered);
-  if (context_->wannadie())
+  if (wannadie())
     return;
 
   xbt_assert(simcall_.call_ != Simcall::Type::NONE, "Asked to do the noop syscall on %s@%s", get_cname(),
@@ -51,6 +49,4 @@ const char* Simcall::get_cname() const
   }
 }
 
-} // namespace actor
-} // namespace kernel
-} // namespace simgrid
+} // namespace simgrid::kernel::actor