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

Zmq threads and context threads #25

Merged
merged 7 commits into from
Aug 29, 2024

Conversation

JamesOHeaDLS
Copy link
Collaborator

Hi Gary,

As discussed this is my attempt at addressing some of the magic numbers by using command line argument values, or defaults.

With your suggestion of having a -t / --threads (passed to MultiPullBroker) and -z / --zmq-context-threads (passed to zmq context), I repurposed the old -z ("Set the number of zmq sockets to connect to the Eiger with") to be a "zmq_context_threads" argument.

I also renamed variables which handled this argument to match its new purpose.

The biggest change to the code (as opposed to just renaming), was adding a new argument to HandleRxSocket so that it can make use of the command line argument value.

Thanks,

James

cpp/data/eigerfan/src/EigerFan.cpp Outdated Show resolved Hide resolved
cpp/data/eigerfan/src/eigerfan_main.cpp Outdated Show resolved Hide resolved
cpp/data/eigerfan/src/eigerfan_main.cpp Outdated Show resolved Hide resolved
@GDYendell GDYendell merged commit 57da2a9 into multithreaded-fan Aug 29, 2024
13 checks passed
@GDYendell GDYendell deleted the zmq_threads_and_context_threads branch August 29, 2024 12:24
@GDYendell
Copy link
Collaborator

Thanks @JamesOHeaDLS !

@JamesOHeaDLS
Copy link
Collaborator Author

Thanks @GDYendell for guiding me through this Odin/Eiger world!

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.

2 participants