Added slot for poll creation.

This commit is contained in:
Jari Sundell
2011-12-21 01:54:29 +09:00
parent 007d83e904
commit 28634f2c8c
4 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -38,7 +38,7 @@
#include <stdexcept>
#include <unistd.h>
#include <rak/error_number.h>
#include <torrent/exceptions.h>
#include <torrent/poll_epoll.h>
#include <torrent/poll_kqueue.h>
#include <torrent/poll_select.h>
@@ -85,7 +85,7 @@ create_poll() {
log->push_front("Using 'select' based polling.");
else
throw std::runtime_error("Could not create any Poll object.");
throw torrent::internal_error("Could not create any Poll object.");
return poll;
}
+4 -4
View File
@@ -37,12 +37,12 @@
#ifndef RTORRENT_CORE_POLL_MANAGER_H
#define RTORRENT_CORE_POLL_MANAGER_H
#include <rak/timer.h>
#include <sigc++/signal.h>
#include <torrent/poll.h>
#include "curl_stack.h"
namespace torrent {
class Poll;
}
namespace core {
torrent::Poll* create_poll();