Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add threadsafe switch to ZMQStream #239

Merged
merged 2 commits into from
Aug 8, 2012
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Aug 1, 2012

wraps any calls to io_loop API in add_callback, which is the only thread safe
method on the IOLoop object. This can introduce delays in the events for
code under heavy load, but they should have minimal effect, as the same
delays would affect the handling of the events in the same way they affect
the registration thereof.

Off by default, so existing code will see no changes.

closes #236

send/getsockopt_stream, and a s/stream/self in on_send_stream
wraps any calls to io_loop API in add_callback, which is the only thread safe method on the IOLoop object.  This can introduce delays in the events for code under heavy load, but they should have minimal effect, as the same delays would affect the handling of the events in the same way they affect the registration thereof.

Off by default, so existing code will see no changes.
@minrk minrk mentioned this pull request Aug 1, 2012
minrk added a commit that referenced this pull request Aug 8, 2012
add threadsafe switch to ZMQStream

wraps any calls to io_loop API in add_callback, which is the only thread safe
method on the IOLoop object. This can introduce delays in the events for
code under heavy load, but they should have minimal effect, as the same
delays would affect the handling of the events in the same way they affect
the registration thereof.

Off by default, so existing code will see no changes.
@minrk minrk merged commit 9927c50 into zeromq:master Aug 8, 2012
@minrk minrk deleted the threadsafestream branch March 31, 2014 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add a thread-safe layer
1 participant