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

implement blocking wait_one_sample call on data readers #117

Open
doudou opened this issue Oct 19, 2017 · 0 comments
Open

implement blocking wait_one_sample call on data readers #117

doudou opened this issue Oct 19, 2017 · 0 comments

Comments

@doudou
Copy link
Member

doudou commented Oct 19, 2017

RTT has a way to register a callback on input ports. We could use this mechanism to provide a blocking #wait method (and probably a #wait_one_sample higher-level method) that blocks until the callback is called by RTT. This would most probably reduce the CPU usage of Async quite a bit.

Two notes about the implementation:

  • should block with timeout
  • must release the MRI global lock while waiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant