From: Frederic Suter Date: Mon, 16 Jul 2018 10:21:38 +0000 (+0200) Subject: hide tracing from MSG X-Git-Tag: v3_21~424 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1260d46173af975ea2c537d7d060efbfc54286aa?hp=-c hide tracing from MSG --- 1260d46173af975ea2c537d7d060efbfc54286aa diff --git a/src/msg/msg_gos.cpp b/src/msg/msg_gos.cpp index da08135163..65d91fc4f3 100644 --- a/src/msg/msg_gos.cpp +++ b/src/msg/msg_gos.cpp @@ -113,11 +113,8 @@ msg_error_t MSG_process_sleep(double nb_sec) { msg_error_t status = MSG_OK; - if (TRACE_actor_is_enabled()) - simgrid::instr::Container::by_name(instr_pid(MSG_process_self()))->get_state("ACTOR_STATE")->push_event("sleep"); - try { - simcall_process_sleep(nb_sec); + simgrid::s4u::this_actor::sleep_for(nb_sec); } catch(xbt_ex& e) { if (e.category == cancel_error) { @@ -133,9 +130,6 @@ msg_error_t MSG_process_sleep(double nb_sec) throw; } - if (TRACE_actor_is_enabled()) - simgrid::instr::Container::by_name(instr_pid(MSG_process_self()))->get_state("ACTOR_STATE")->pop_event(); - return status; }