Commit e7817ad3 authored by sigiesec's avatar sigiesec

Problem: code duplication

Solution: reduced code duplication by introducing local variables and
new function trigger_events
parent 37914d1b
This diff is collapsed.
......@@ -97,7 +97,7 @@ namespace zmq
fds_set_t ();
fds_set_t (const fds_set_t& other_);
fds_set_t& operator=(const fds_set_t& other_);
// Convinient method to descriptor from all sets.
// Convenience method to descriptor from all sets.
void remove_fd (const fd_t& fd_);
fd_set read;
......@@ -133,6 +133,8 @@ namespace zmq
};
#endif
void trigger_events(const fd_entries_t &fd_entries_, const fds_set_t &local_fds_set_, int event_count_);
#if defined ZMQ_HAVE_WINDOWS
family_entries_t family_entries;
// See loop for details.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment