You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No this has not been fixed. The best way is probably not call that constructor and write you own run function for now (until someone writes a pull request).
monitor_t mon;
mon.init(socket, addr, events);
while (true) {
if (!mon.check_event(-1) && zmq_errno() == ETERM) // or something elsebreak;
}
Hello,
due to changes of zmq.hpp from 4.2.1 to 4.2.2, calling abort on a monitor object running in a separate thread doesn't end the monitor taks.
The problem is, that monitor loops unconditionally and doesn't check the check_event return value:
Furhter on, within check_event, ETERM is not necessarily set, so you might get an violated assertion there.
Is this intended? Alternatively, what is the recommended way of terminating an monitor object in a separate thread on program end?
The text was updated successfully, but these errors were encountered: