usleep is not defined in Windows land.
sleep is the equlivant command where: sleep(10) sleeps for 10 milliseconds. This commit was SVN r5433.
Этот коммит содержится в:
родитель
fbf1ec6f2e
Коммит
d1b12501fb
@ -683,7 +683,11 @@ int mca_oob_tcp_init(void)
|
||||
ompi_list_item_t* item;
|
||||
|
||||
/* random delay to stagger connections back to seed */
|
||||
#if defined(WIN32)
|
||||
sleep((orte_process_info.my_name->vpid % orte_process_info.num_procs % 1000) * 1000);
|
||||
#else
|
||||
usleep((orte_process_info.my_name->vpid % orte_process_info.num_procs % 1000) * 1000);
|
||||
#endif
|
||||
|
||||
/* get my jobid */
|
||||
if (ORTE_SUCCESS != (rc = orte_ns.get_jobid(&jobid,
|
||||
|
@ -294,7 +294,11 @@ static int kill_tids(tm_task_id *tids, orte_process_name_t *names, size_t size)
|
||||
"pls:tm:kill: tid %d died", tids[i]);
|
||||
break;
|
||||
}
|
||||
#if defined(WIN32)
|
||||
sleep(1);
|
||||
#else
|
||||
usleep(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* No, it did not die. Try with SIGKILL */
|
||||
@ -342,7 +346,11 @@ static int kill_tids(tm_task_id *tids, orte_process_name_t *names, size_t size)
|
||||
died = true;
|
||||
break;
|
||||
}
|
||||
#if defined(WIN32)
|
||||
sleep(1);
|
||||
#else
|
||||
usleep(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (j >= NUM_SIGNAL_POLL_ITERS) {
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user