mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-08 22:46:05 +00:00
Cast execute_timers() result to int
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
This commit is contained in:
parent
b64b50ae21
commit
3e74a439c4
@ -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];
|
||||
|
@ -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,
|
||||
|
@ -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];
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user