- DEBUG2("Simulate the run of a task of %f sec for %s",duration,locbuf);
- cond = SIMIX_cond_init();
- mutex = SIMIX_mutex_init();
-
- SIMIX_mutex_lock(mutex);
- act = SIMIX_action_execute(SIMIX_host_self(), (char*)"task", (duration)/reference);
-
- SIMIX_register_action_to_condition(act,cond);
- SIMIX_register_condition_to_action(act,cond);
- SIMIX_cond_wait(cond, mutex);
-
- SIMIX_action_destroy(act);
- SIMIX_mutex_unlock(mutex);
-
- SIMIX_cond_destroy(cond);
- SIMIX_mutex_destroy(mutex);
+ XBT_DEBUG("Simulate the run of a task of %f sec for %s", duration, locbuf);
+ gras_cpu_burn(duration / reference);