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 an example #423

Merged
merged 9 commits into from
Sep 4, 2020
Merged

Add an example #423

merged 9 commits into from
Sep 4, 2020

Conversation

serg06
Copy link
Contributor

@serg06 serg06 commented May 26, 2020

I had a really tough time figuring out how to do simple multi-threaded pub-sub with cppzmq; I finally figured it out so I'd like to add it.

I had a really tough time figuring out how to do simple pub-sub with cppzmq; I finally figured it out so I'd like to add it.
Give publisher time to bind
Fix accidentally creating ctx with 1 IO thread
Replace Sleep with std::this_thread::sleep_for
Copy link
Member

@gummif gummif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to see some examples.

examples/pubsub_multithread_inproc.cpp Outdated Show resolved Hide resolved
examples/pubsub_multithread_inproc.cpp Outdated Show resolved Hide resolved
examples/pubsub_multithread_inproc.cpp Outdated Show resolved Hide resolved
examples/pubsub_multithread_inproc.cpp Outdated Show resolved Hide resolved
examples/pubsub_multithread_inproc.cpp Outdated Show resolved Hide resolved
examples/pubsub_multithread_inproc.cpp Outdated Show resolved Hide resolved
@sigiesec
Copy link
Member

Thanks for adding the examples, that's really helpful! Could you just reformat that using clang-format?

@sigiesec sigiesec merged commit 12c3003 into zeromq:master Sep 4, 2020
@sigiesec
Copy link
Member

sigiesec commented Sep 4, 2020

Thanks! Sorry for taking so long to merge this.

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.

3 participants