1
1

* don't make OPAL_EVLOOP_ONELOOP spin hard, which was causing some latency

issues Gleb saw

This commit was SVN r11169.
Этот коммит содержится в:
Brian Barrett 2006-08-14 15:02:03 +00:00
родитель 1bac566976
Коммит dbce03c470
2 изменённых файлов: 3 добавлений и 6 удалений

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

@ -604,10 +604,9 @@ opal_event_base_loop(struct event_base *base, int flags)
if (base->event_count_active) {
opal_event_process_active(base);
if (!base->event_count_active && (flags & OPAL_EVLOOP_ONCE))
if (!base->event_count_active && (flags & (OPAL_EVLOOP_ONCE|OPAL_EVLOOP_ONELOOP)))
done = 1;
} else if ((flags & OPAL_EVLOOP_NONBLOCK) ||
(flags & OPAL_EVLOOP_ONELOOP))
} else if (flags & (OPAL_EVLOOP_NONBLOCK|OPAL_EVLOOP_ONELOOP))
done = 1;
}

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

@ -176,9 +176,7 @@ int opal_event_base_set(struct event_base *, struct opal_event *);
#define OPAL_EVLOOP_ONCE 0x01
#define OPAL_EVLOOP_NONBLOCK 0x02
/* run once through the loop, but do have the default timeout.
Need to be both something special *AND* EVLOOP_ONCE */
#define OPAL_EVLOOP_ONELOOP 0x03
#define OPAL_EVLOOP_ONELOOP 0x04
OMPI_DECLSPEC int opal_event_loop(int);
int opal_event_base_loop(struct event_base *, int);