mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-10-16 18:56:56 +02:00
Problem: poller_t does not have great test coverage
@sigiesec's recent commits with gtests and basics tests for zmq types (thanks for that!) makes it too convinient to not add some more tests. * Adding some simple tests for poller_t * Stripped whitespaces from poller implementation.
This commit is contained in:
6
zmq.hpp
6
zmq.hpp
@@ -1003,10 +1003,10 @@ namespace zmq
|
||||
assert(rc == 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
poller_t(const poller_t&) = delete;
|
||||
poller_t &operator=(const poller_t&) = delete;
|
||||
poller_t(poller_t&& src)
|
||||
poller_t(poller_t&& src)
|
||||
: poller_ptr(src.poller_ptr)
|
||||
, poller_events(std::move (src.poller_events))
|
||||
{
|
||||
@@ -1018,7 +1018,7 @@ namespace zmq
|
||||
poller_events = std::move (src.poller_events);
|
||||
src.poller_ptr = NULL;
|
||||
return *this;
|
||||
}
|
||||
}
|
||||
|
||||
void add (zmq::socket_t &socket, short events, std::function<void(void)> &handler)
|
||||
{
|
||||
|
Reference in New Issue
Block a user