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
88e4cff9
Commit
88e4cff9
authored
Oct 01, 2016
by
Luca Boccassi
Committed by
GitHub
Oct 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2147 from goodfella/fix-zmq-poller-poll-return
Fix zmq poller poll return
parents
6c166937
ffdb44ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
stream_engine.cpp
src/stream_engine.cpp
+5
-0
zmq.cpp
src/zmq.cpp
+1
-1
test_radio_dish.cpp
tests/test_radio_dish.cpp
+1
-1
No files found.
src/stream_engine.cpp
View file @
88e4cff9
...
...
@@ -31,6 +31,11 @@
#include "macros.hpp"
#include <string.h>
#ifndef ZMQ_HAVE_WINDOWS
#include <unistd.h>
#endif
#include <new>
#include <sstream>
...
...
src/zmq.cpp
View file @
88e4cff9
...
...
@@ -842,7 +842,7 @@ inline int zmq_poller_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
}
// Cleanup
rc
=
zmq_poller_destroy
(
&
poller
);
zmq_poller_destroy
(
&
poller
);
delete
[]
events
;
return
rc
;
}
...
...
tests/test_radio_dish.cpp
View file @
88e4cff9
...
...
@@ -167,7 +167,7 @@ int main (void)
{
dish
,
0
,
ZMQ_POLLIN
,
0
},
// read subscriptions
};
rc
=
zmq_poll
(
items
,
2
,
2000
);
assert
(
rc
==
0
);
assert
(
rc
==
1
);
assert
(
items
[
1
].
revents
==
ZMQ_POLLIN
);
// Check the correct message arrived
...
...
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