X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/962510fd94a2c10c6873d41acdf2798a8af7f706..af45246075b3fc6bc43782309f9320974d5e222d:/src/msg/instr_msg_process.cpp diff --git a/src/msg/instr_msg_process.cpp b/src/msg/instr_msg_process.cpp index 2d0d43dc79..5e621ae13a 100644 --- a/src/msg/instr_msg_process.cpp +++ b/src/msg/instr_msg_process.cpp @@ -75,8 +75,9 @@ void TRACE_msg_process_suspend(msg_process_t process) { if (TRACE_msg_process_is_enabled()){ container_t process_container = simgrid::instr::Container::byName(instr_process_id(process)); - simgrid::instr::Type* state = process_container->type_->byName("MSG_PROCESS_STATE"); - simgrid::instr::Value* val = state->getEntityValue("suspend"); + simgrid::instr::StateType* state = + static_cast(process_container->type_->byName("MSG_PROCESS_STATE")); + simgrid::instr::EntityValue* val = state->getEntityValue("suspend"); new simgrid::instr::PushStateEvent(MSG_get_clock(), process_container, state, val); } } @@ -94,8 +95,9 @@ void TRACE_msg_process_sleep_in(msg_process_t process) { if (TRACE_msg_process_is_enabled()){ container_t process_container = simgrid::instr::Container::byName(instr_process_id(process)); - simgrid::instr::Type* state = process_container->type_->byName("MSG_PROCESS_STATE"); - simgrid::instr::Value* val = state->getEntityValue("sleep"); + simgrid::instr::StateType* state = + static_cast(process_container->type_->byName("MSG_PROCESS_STATE")); + simgrid::instr::EntityValue* val = state->getEntityValue("sleep"); new simgrid::instr::PushStateEvent(MSG_get_clock(), process_container, state, val); } }