Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
ba9a559f
Commit
ba9a559f
authored
Apr 13, 2016
by
Patrik Wenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: PR #1891 wasn't complete
Solution: make the same change for the ZMQ_POLL_BASED_ON_SELECT case
parent
1afed1d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
socket_poller.cpp
src/socket_poller.cpp
+9
-3
No files found.
src/socket_poller.cpp
View file @
ba9a559f
...
...
@@ -528,13 +528,19 @@ int zmq::socket_poller_t::wait (zmq::socket_poller_t::event_t *event_, long time
#elif defined ZMQ_POLL_BASED_ON_SELECT
if
(
unlikely
(
poll_size
==
0
))
{
// We'll report an error (timed out) as if the list was non-empty and
// no event occured within the specified timeout. Otherwise the caller
// needs to check the return value AND the event to avoid using the
// nullified event data.
errno
=
ETIMEDOUT
;
if
(
timeout_
==
0
)
return
0
;
return
-
1
;
#if defined ZMQ_HAVE_WINDOWS
Sleep
(
timeout_
>
0
?
timeout_
:
INFINITE
);
return
0
;
return
-
1
;
#else
return
usleep
(
timeout_
*
1000
);
usleep
(
timeout_
*
1000
);
return
-
1
;
#endif
}
zmq
::
clock_t
clock
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment