Fixed poll arguments.

This commit is contained in:
Jari Sundell
2011-12-12 02:58:16 +09:00
parent 6dfd2fe0cd
commit 4d1f5dce67
5 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -64,12 +64,12 @@ PollManagerKQueue::~PollManagerKQueue() {
void
PollManagerKQueue::poll(rak::timer timeout) {
static_cast<torrent::PollKQueue*>(m_poll)->do_poll();
static_cast<torrent::PollKQueue*>(m_poll)->do_poll(timeout.usec());
}
void
PollManagerKQueue::poll_simple(rak::timer timeout) {
static_cast<torrent::PollKQueue*>(m_poll)->do_poll(torrent::Poll::poll_worker_thread);
static_cast<torrent::PollKQueue*>(m_poll)->do_poll(timeout.usec(), torrent::Poll::poll_worker_thread);
}
}