X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/664347487ca94017fb1bc3bf86f7438425c8fd28..149c63f36e15b8500b1e826bda5138318ff7ba2b:/include/simgrid/s4u/Activity.hpp diff --git a/include/simgrid/s4u/Activity.hpp b/include/simgrid/s4u/Activity.hpp index ccdcea1678..76d41c00bc 100644 --- a/include/simgrid/s4u/Activity.hpp +++ b/include/simgrid/s4u/Activity.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-2020. 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. */ @@ -14,6 +14,8 @@ #include #include +XBT_LOG_EXTERNAL_CATEGORY(s4u_activity); + namespace simgrid { namespace s4u { @@ -89,7 +91,7 @@ private: template class Activity_T : public Activity { private: - std::string name_ = ""; + std::string name_ = "unnamed"; std::string tracing_category_ = ""; void* user_data_ = nullptr; std::atomic_int_fast32_t refcount_{0}; @@ -124,6 +126,7 @@ public: { while (has_successors()) { AnyActivity* b = get_successor(); + XBT_CDEBUG(s4u_activity, "Remove a dependency from '%s' on '%s'", get_cname(), b->get_cname()); b->remove_dependency_on(static_cast(this)); if (not b->has_dependencies()) { b->vetoable_start(); @@ -138,6 +141,7 @@ public: if (has_dependencies()) return static_cast(this); set_state(State::STARTED); + XBT_CDEBUG(s4u_activity, "All dependencies are solved, let's start '%s'", get_cname()); static_cast(this)->start(); return static_cast(this); }