Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
further handle my sonar backlog
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 21 Jun 2017 09:30:55 +0000 (11:30 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 21 Jun 2017 09:30:55 +0000 (11:30 +0200)
include/simgrid/simix.h
src/simix/ActorImpl.cpp

index 6c74149..b464cf1 100644 (file)
@@ -26,14 +26,6 @@ namespace context {
 
   namespace simix {
 
 
   namespace simix {
 
-  /** @brief Process datatype
-      @ingroup simix_process_management
-
-      A process may be defined as a <em>code</em>, with some <em>private
-      data</em>, executing in a <em>location</em>.
-      \see m_process_management
-    @{ */
-  class ActorImpl;
   class MutexImpl;
 }
 }
   class MutexImpl;
 }
 }
index e57bd31..d4b3934 100644 (file)
@@ -433,7 +433,7 @@ void SIMIX_process_kill(smx_actor_t process, smx_actor_t issuer) {
         boost::dynamic_pointer_cast<simgrid::kernel::activity::IoImpl>(process->waiting_synchro);
 
     if (exec != nullptr) {
         boost::dynamic_pointer_cast<simgrid::kernel::activity::IoImpl>(process->waiting_synchro);
 
     if (exec != nullptr) {
-
+      /* Nothing to do */
     } else if (comm != nullptr) {
       process->comms.remove(process->waiting_synchro);
       comm->cancel();
     } else if (comm != nullptr) {
       process->comms.remove(process->waiting_synchro);
       comm->cancel();
@@ -449,6 +449,8 @@ void SIMIX_process_kill(smx_actor_t process, smx_actor_t issuer) {
 
     } else if (io != nullptr) {
       SIMIX_io_destroy(process->waiting_synchro);
 
     } else if (io != nullptr) {
       SIMIX_io_destroy(process->waiting_synchro);
+    } else {
+      xbt_die("Unknown type of activity");
     }
 
     /*
     }
 
     /*