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

Public GIT Repository
Dockerfile: fix a syntax error
[simgrid.git] / src / simix / libsmx.cpp
index 5d323db06f2a64b96ece38cf00f65a4645976190..06cdf2881c84e757d58c2baa846846b18dec2688 100644 (file)
@@ -28,6 +28,7 @@
 #include <boost/core/demangle.hpp>
 #include <string>
 #include <typeinfo>
+XBT_LOG_NEW_CATEGORY(simix, "All SIMIX categories");
 
 /**
  * @ingroup simix_host_management
@@ -238,11 +239,6 @@ bool simcall_comm_test(simgrid::kernel::activity::ActivityImpl* comm)
  */
 smx_mutex_t simcall_mutex_init() // XBT_ATTRIB_DEPRECATED_v330
 {
-  if (simix_global == nullptr) {
-    fprintf(stderr, "You must initialize the SimGrid engine before using it\n"); // We can't use xbt_die since we may
-                                                                                 // get there before the initialization
-    xbt_abort();
-  }
   return simgrid::kernel::actor::simcall([] { return new simgrid::kernel::activity::MutexImpl(); });
 }
 
@@ -386,7 +382,7 @@ namespace simix {
 
 void unblock(smx_actor_t actor)
 {
-  xbt_assert(SIMIX_is_maestro());
+  xbt_assert(s4u::Actor::is_maestro());
   actor->simcall_answer();
 }
 } // namespace simix