Cast execute_timers() result to int

Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
This commit is contained in:
Mikko Koppanen 2010-10-15 11:21:56 +02:00 committed by Martin Sustrik
parent b64b50ae21
commit 3e74a439c4
5 changed files with 5 additions and 5 deletions

View File

@ -150,7 +150,7 @@ void zmq::devpoll_t::loop ()
pending_list.clear ();
// Execute any due timers.
uint64_t timeout = execute_timers ();
int timeout = (int) execute_timers ();
// Wait for events.
poll_req.dp_fds = &ev_buf [0];

View File

@ -134,7 +134,7 @@ void zmq::epoll_t::loop ()
while (!stopping) {
// Execute any due timers.
uint64_t timeout = execute_timers ();
int timeout = (int) execute_timers ();
// Wait for events.
int n = epoll_wait (epoll_fd, &ev_buf [0], max_io_events,

View File

@ -147,7 +147,7 @@ void zmq::kqueue_t::loop ()
while (!stopping) {
// Execute any due timers.
uint64_t timeout = execute_timers ();
int timeout = (int) execute_timers ();
// Wait for events.
struct kevent ev_buf [max_io_events];

View File

@ -124,7 +124,7 @@ void zmq::poll_t::loop ()
while (!stopping) {
// Execute any due timers.
uint64_t timeout = execute_timers ();
int timeout = (int) execute_timers ();
// Wait for events.
int rc = poll (&pollset [0], pollset.size (), timeout ? timeout : -1);

View File

@ -148,7 +148,7 @@ void zmq::select_t::loop ()
while (!stopping) {
// Execute any due timers.
uint64_t timeout = execute_timers ();
int timeout = (int) execute_timers ();
// Intialise the pollsets.
memcpy (&readfds, &source_set_in, sizeof source_set_in);