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
I have a while-loop which is receiving via socket->receive(message);.
I call another function inside the same class (but from a different thread) which tells the while loop to end.
Additonally, I have to close the sockets so the term/destroy on the context is not erroring out.
After both socket operations, I just get "Ressource temporarily unavailable".
Why is that?
The sockets gets bound to the same endpoint, but cannot be closed?
Of course, in the other Thread its still running socket->receive(message), but that one should stop once I call zmq_ctx_term() according to the docs.
TLDR;: How do I actually close zmqpp gracefully from another thread?
The text was updated successfully, but these errors were encountered:
I have a while-loop which is receiving via socket->receive(message);.
I call another function inside the same class (but from a different thread) which tells the while loop to end.
Additonally, I have to close the sockets so the term/destroy on the context is not erroring out.
After both socket operations, I just get "Ressource temporarily unavailable".
Why is that?
The sockets gets bound to the same endpoint, but cannot be closed?
Of course, in the other Thread its still running socket->receive(message), but that one should stop once I call zmq_ctx_term() according to the docs.
TLDR;: How do I actually close zmqpp gracefully from another thread?
The text was updated successfully, but these errors were encountered: