-
Notifications
You must be signed in to change notification settings - Fork 6
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
rxros::spin() funtion uses unnecessary many threads #15
Comments
Would it be an idea to leave spinning to the user? That is how If they don't want/need control, they could just do whatever they'd do normally with |
The idea with the rxros::spin() is to provide a simple wrapper around the ros::MultiThreadedSpinner and to give some consistency to the language. The programmer should to the extend possible be keept into rxros mindset. This is its main function. |
Removed rxros::init, rxros::spin and rxros::ok.
Issue #15: rxros::spin() function uses unnecessary many threads
The rxros::spin() function is based on the ros::MultiThreadedSpinner. It is configured to use a spinner/thread for each available CPU core. This means that on a machine with 4 cores each an every node will take up at least 4 threads whether they the are needed or not.
Proposed solution:
The ros::spin() should per default only use one thread for spinning and take an argument that will allow the programmer to specify the needed number of spinners/threads.
The text was updated successfully, but these errors were encountered: