- if (synchro->state == SIMIX_RUNNING)
- result = surf_action_get_remains(synchro->execution.surf_exec);
-
- return result;
-}
-
-e_smx_state_t SIMIX_process_execution_get_state(smx_synchro_t synchro){
- return synchro->state;
-}
-
-void SIMIX_process_execution_set_priority(smx_synchro_t synchro, double priority){
-
- if(synchro->execution.surf_exec)
- synchro->execution.surf_exec->setPriority(priority);
-}
-
-void SIMIX_process_execution_set_bound(smx_synchro_t synchro, double bound){
-
- if(synchro->execution.surf_exec)
- static_cast<simgrid::surf::CpuAction*>(synchro->execution.surf_exec)
- ->setBound(bound);
-}
-
-void SIMIX_process_execution_set_affinity(smx_synchro_t synchro, sg_host_t host, unsigned long mask){
- xbt_assert(synchro->type == SIMIX_SYNC_EXECUTE);
-
- if (synchro->execution.surf_exec) {
- /* just a double check to confirm that this host is the host where this task is running. */
- xbt_assert(synchro->execution.host == host);
- static_cast<simgrid::surf::CpuAction*>(synchro->execution.surf_exec)
- ->setAffinity(host->pimpl_cpu, mask);
- }