poll() support (tested on Solaris and Linux)

array delete policy for SharedPtr
This commit is contained in:
Aleksandar Fabijanic
2008-12-03 20:38:53 +00:00
parent c617bbe551
commit ab0684a1cd
8 changed files with 229 additions and 10 deletions

View File

@@ -121,7 +121,11 @@ void SocketReactor::run()
{
onIdle();
}
#if defined(POCO_HAVE_FD_POLL)
else if (Socket::poll(readable, writable, except, _timeout))
#else
else if (Socket::select(readable, writable, except, _timeout))
#endif
{
for (Socket::SocketList::iterator it = readable.begin(); it != readable.end(); ++it)
dispatch(*it, _pReadableNotification);