* don't make OPAL_EVLOOP_ONELOOP spin hard, which was causing some latency
issues Gleb saw This commit was SVN r11169.
Этот коммит содержится в:
родитель
1bac566976
Коммит
dbce03c470
@ -604,10 +604,9 @@ opal_event_base_loop(struct event_base *base, int flags)
|
|||||||
|
|
||||||
if (base->event_count_active) {
|
if (base->event_count_active) {
|
||||||
opal_event_process_active(base);
|
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;
|
done = 1;
|
||||||
} else if ((flags & OPAL_EVLOOP_NONBLOCK) ||
|
} else if (flags & (OPAL_EVLOOP_NONBLOCK|OPAL_EVLOOP_ONELOOP))
|
||||||
(flags & OPAL_EVLOOP_ONELOOP))
|
|
||||||
done = 1;
|
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_ONCE 0x01
|
||||||
#define OPAL_EVLOOP_NONBLOCK 0x02
|
#define OPAL_EVLOOP_NONBLOCK 0x02
|
||||||
/* run once through the loop, but do have the default timeout.
|
#define OPAL_EVLOOP_ONELOOP 0x04
|
||||||
Need to be both something special *AND* EVLOOP_ONCE */
|
|
||||||
#define OPAL_EVLOOP_ONELOOP 0x03
|
|
||||||
|
|
||||||
OMPI_DECLSPEC int opal_event_loop(int);
|
OMPI_DECLSPEC int opal_event_loop(int);
|
||||||
int opal_event_base_loop(struct event_base *, int);
|
int opal_event_base_loop(struct event_base *, int);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user