- DEBUG3("MSG task %p(%s), category %s", task, task->name, task->category);
-
- if (TRACE_msg_task_is_enabled()){
- m_host_t host = MSG_host_self();
- container_t host_container = getContainer(host->name);
- //check to see if there is a container with the task->name
- container_t msg = getContainer(task->name);
- xbt_assert3(xbt_dict_get_or_null (tasks_created, task->name) == NULL,
- "Task %p(%s). Tracing already knows a task with name %s."
- "The name of each task must be unique, if --cfg=tracing/msg/task:1 is used.", task, task->name, task->name);
- msg = newContainer(task->name, INSTR_MSG_TASK, host_container);
- type_t type = getType (task->category);
- if (!type){
- type = getVariableType(task->category, NULL, msg->type);
- }
- new_pajeSetVariable (SIMIX_get_clock(), msg, type, 1);
-
- type = getType ("MSG_TASK_STATE");
- new_pajePushState (MSG_get_clock(), msg, type, "created");
-
- xbt_dict_set (tasks_created, task->name, xbt_strdup("1"), xbt_free);
- }