mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-06 00:31:14 +01:00
Code formatting, sorry...
This commit is contained in:
parent
d9a0fde681
commit
46fc0572c5
3
zmq.hpp
3
zmq.hpp
@ -868,7 +868,8 @@ namespace zmq
|
|||||||
int rc = zmq_poller_wait_all (poller_ptr, poller_events.data (), poller_events.size (), static_cast<long>(timeout.count ()));
|
int rc = zmq_poller_wait_all (poller_ptr, poller_events.data (), poller_events.size (), static_cast<long>(timeout.count ()));
|
||||||
if (rc >= 0) {
|
if (rc >= 0) {
|
||||||
std::for_each (poller_events.begin (), poller_events.begin () + rc, [](zmq_poller_event_t& event) {
|
std::for_each (poller_events.begin (), poller_events.begin () + rc, [](zmq_poller_event_t& event) {
|
||||||
if (event.user_data != NULL) (*reinterpret_cast<std::function<void(void)>*> (event.user_data)) ();
|
if (event.user_data != NULL)
|
||||||
|
(*reinterpret_cast<std::function<void(void)>*> (event.user_data)) ();
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user