1
1

If we don't have yield then use sleep ...

This commit was SVN r8442.
Этот коммит содержится в:
George Bosilca 2005-12-10 22:18:41 +00:00
родитель 6f45b6175a
Коммит aa2217df8e

Просмотреть файл

@ -413,6 +413,12 @@ int mca_ptl_sm_add_procs_same_base_addr(
#ifdef HAVE_SCHED_YIELD
while(!mca_ptl_sm_component.mmap_file->map_seg->seg_inited)
{ sched_yield(); }
#else
#if defined(__WINDOWS__)
sleep(50); /* milliseconds */
#else
usleep(50000); /* microseconds */
#endif
#endif /* HAVE_SCHED_YIELD */
}