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

Using RxCpp operator subscribe_on creates an unexpected number of threads #18

Open
henrik7264 opened this issue Aug 31, 2019 · 0 comments

Comments

@henrik7264
Copy link
Collaborator

The RxCpp operator subscribe_on is used in several of the RxROS functions/observables to run in dedicated threads. However, the subscribe_on operation spawns an unexpected number of threads. For a simple program that created an observable from a topic, performed a map operation and published it to a new topic at least 10 threads were spawned. The expected number was one.

Preliminary investigations have shown that

  1. The problem is general and not only associated with RxROS.
  2. The problem does not depend on the size of the program or the number of used operations.

It looks like the subscribe_on creates a pool of threads - maybe for future use.

The problem should be further investigated and maybe forwarded to the RxCpp team.

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

No branches or pull requests

1 participant