Problem: Cannot get thread safe socket fd

Solution: Add a method to get the zmq_poller's signaler fd. Then we can
associate a poller instance with every thread safe socket and use its
fd.
This commit is contained in:
jean-airoldie
2019-04-27 20:36:24 -04:00
parent 501f9d8da4
commit 046534480b
5 changed files with 20 additions and 0 deletions

View File

@@ -75,6 +75,8 @@ class socket_poller_t
int add_fd (fd_t fd_, void *user_data_, short events_);
int modify_fd (fd_t fd_, short events_);
int remove_fd (fd_t fd_);
// Returns the signaler's fd if there is one, otherwise errors.
int signaler_fd ();
int wait (event_t *event_, int n_events_, long timeout_);