diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-04-19 12:53:58 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-04-19 12:53:58 +0000 |
| commit | 0ec50a8d506a7d65ecbc937c7451126dd716c125 (patch) | |
| tree | 1867959d41e8e833c83aad711020ebff8340fe6f /src/SocketCore.h | |
| parent | 756592bf4d937f63829fcaaafb38e338417eb407 (diff) | |
2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Supported poll() for socket event notification. --event-poll can
take value "poll". Fixed the bug that timeout for
SocketCore::isReadable()/isWritable() is ignored when epoll is
used.
* src/OptionHandlerFactory.cc
* src/a2io.h
* src/prefs.h
* src/SocketCore.h
* src/Makefile.am
* src/main.cc
* src/PollEventPoll.h
* src/SocketCore.cc
* src/DownloadEngineFactory.cc
* src/PollEventPoll.cc
* src/prefs.cc
* configure.ac
Diffstat (limited to 'src/SocketCore.h')
| -rw-r--r-- | src/SocketCore.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/SocketCore.h b/src/SocketCore.h index dc183e8c..c864204b 100644 --- a/src/SocketCore.h +++ b/src/SocketCore.h @@ -88,7 +88,9 @@ private: #endif // HAVE_EPOLL enum PollMethod { - POLL_METHOD_EPOLL, POLL_METHOD_SELECT + POLL_METHOD_EPOLL, + POLL_METHOD_POLL, + POLL_METHOD_SELECT }; static PollMethod _pollMethod; @@ -360,6 +362,9 @@ public: #ifdef HAVE_EPOLL static void useEpoll(); #endif // HAVE_EPOLL +#ifdef HAVE_POLL + static void usePoll(); +#endif // HAVE_POLL static void useSelect(); #ifdef ENABLE_SSL |
