Update the OMPI libevent interface module and the internal libevent event.c file to provide ability to disable specific event modes. Basically an issue between #define and checking to see if the value was defined to zero.
This commit was SVN r24056.
Этот коммит содержится в:
родитель
1b3421f16e
Коммит
32be69eaef
@ -69,22 +69,28 @@
|
|||||||
#include "ht-internal.h"
|
#include "ht-internal.h"
|
||||||
#include "util-internal.h"
|
#include "util-internal.h"
|
||||||
|
|
||||||
#ifdef _EVENT_HAVE_EVENT_PORTS
|
/**** OMPI CHANGE ****/
|
||||||
|
/* Modified #ifdef's below to include checking for defined
|
||||||
|
* AND checking to see if flag is 0. This accounts for changes
|
||||||
|
* in configure.in whereby we allow users to select whether or
|
||||||
|
* not to disable various methods
|
||||||
|
*/
|
||||||
|
#if defined(_EVENT_HAVE_EVENT_PORTS) && _EVENT_HAVE_EVENT_PORTS
|
||||||
extern const struct eventop evportops;
|
extern const struct eventop evportops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_SELECT
|
#if defined(_EVENT_HAVE_SELECT) && _EVENT_HAVE_SELECT
|
||||||
extern const struct eventop selectops;
|
extern const struct eventop selectops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_POLL
|
#if defined(_EVENT_HAVE_POLL) && _EVENT_HAVE_POLL
|
||||||
extern const struct eventop pollops;
|
extern const struct eventop pollops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_EPOLL
|
#if defined(_EVENT_HAVE_EPOLL) && _EVENT_HAVE_EPOLL
|
||||||
extern const struct eventop epollops;
|
extern const struct eventop epollops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_WORKING_KQUEUE
|
#if defined(_EVENT_HAVE_WORKING_KQUEUE) && _EVENT_HAVE_WORKING_KQUEUE
|
||||||
extern const struct eventop kqops;
|
extern const struct eventop kqops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_DEVPOLL
|
#if defined(_EVENT_HAVE_DEVPOLL) && _EVENT_HAVE_DEVPOLL
|
||||||
extern const struct eventop devpollops;
|
extern const struct eventop devpollops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
@ -93,22 +99,22 @@ extern const struct eventop win32ops;
|
|||||||
|
|
||||||
/* Array of backends in order of preference. */
|
/* Array of backends in order of preference. */
|
||||||
static const struct eventop *eventops[] = {
|
static const struct eventop *eventops[] = {
|
||||||
#ifdef _EVENT_HAVE_EVENT_PORTS
|
#if defined(_EVENT_HAVE_EVENT_PORTS) && _EVENT_HAVE_EVENT_PORTS
|
||||||
&evportops,
|
&evportops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_WORKING_KQUEUE
|
#if defined(_EVENT_HAVE_WORKING_KQUEUE) && _EVENT_HAVE_WORKING_KQUEUE
|
||||||
&kqops,
|
&kqops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_EPOLL
|
#if defined(_EVENT_HAVE_EPOLL) && _EVENT_HAVE_EPOLL
|
||||||
&epollops,
|
&epollops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_DEVPOLL
|
#if defined(_EVENT_HAVE_DEVPOLL) && _EVENT_HAVE_DEVPOLL
|
||||||
&devpollops,
|
&devpollops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_POLL
|
#if defined(_EVENT_HAVE_POLL) && _EVENT_HAVE_POLL
|
||||||
&pollops,
|
&pollops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_SELECT
|
#if defined(_EVENT_HAVE_SELECT) && _EVENT_HAVE_SELECT
|
||||||
&selectops,
|
&selectops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
@ -50,22 +50,22 @@
|
|||||||
#include "opal/mca/event/event.h"
|
#include "opal/mca/event/event.h"
|
||||||
|
|
||||||
/* copied from event.c */
|
/* copied from event.c */
|
||||||
#ifdef _EVENT_HAVE_EVENT_PORTS
|
#if defined(_EVENT_HAVE_EVENT_PORTS) && _EVENT_HAVE_EVENT_PORTS
|
||||||
extern const struct eventop evportops;
|
extern const struct eventop evportops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_SELECT
|
#if defined(_EVENT_HAVE_SELECT) && _EVENT_HAVE_SELECT
|
||||||
extern const struct eventop selectops;
|
extern const struct eventop selectops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_POLL
|
#if defined(_EVENT_HAVE_POLL) && _EVENT_HAVE_POLL
|
||||||
extern const struct eventop pollops;
|
extern const struct eventop pollops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_EPOLL
|
#if defined(_EVENT_HAVE_EPOLL) && _EVENT_HAVE_EPOLL
|
||||||
extern const struct eventop epollops;
|
extern const struct eventop epollops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_WORKING_KQUEUE
|
#if defined(_EVENT_HAVE_WORKING_KQUEUE) && _EVENT_HAVE_WORKING_KQUEUE
|
||||||
extern const struct eventop kqops;
|
extern const struct eventop kqops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_DEVPOLL
|
#if defined(_EVENT_HAVE_DEVPOLL) && _EVENT_HAVE_DEVPOLL
|
||||||
extern const struct eventop devpollops;
|
extern const struct eventop devpollops;
|
||||||
#endif
|
#endif
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
@ -74,22 +74,22 @@ extern const struct eventop win32ops;
|
|||||||
|
|
||||||
/* Array of backends in order of preference. */
|
/* Array of backends in order of preference. */
|
||||||
static const struct eventop *eventops[] = {
|
static const struct eventop *eventops[] = {
|
||||||
#ifdef _EVENT_HAVE_EVENT_PORTS
|
#if defined(_EVENT_HAVE_EVENT_PORTS) && _EVENT_HAVE_EVENT_PORTS
|
||||||
&evportops,
|
&evportops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_WORKING_KQUEUE
|
#if defined(_EVENT_HAVE_WORKING_KQUEUE) && _EVENT_HAVE_WORKING_KQUEUE
|
||||||
&kqops,
|
&kqops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_EPOLL
|
#if defined(_EVENT_HAVE_EPOLL) && _EVENT_HAVE_EPOLL
|
||||||
&epollops,
|
&epollops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_DEVPOLL
|
#if defined(_EVENT_HAVE_DEVPOLL) && _EVENT_HAVE_DEVPOLL
|
||||||
&devpollops,
|
&devpollops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_POLL
|
#if defined(_EVENT_HAVE_POLL) && _EVENT_HAVE_POLL
|
||||||
&pollops,
|
&pollops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef _EVENT_HAVE_SELECT
|
#if defined(_EVENT_HAVE_SELECT) && _EVENT_HAVE_SELECT
|
||||||
&selectops,
|
&selectops,
|
||||||
#endif
|
#endif
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user