Robotics StackExchange | Archived questions

Throttling AsyncSpinner Rate

I am using AsyncSpinner to split a long duration callback off from callbacks invoked at a much higher rate. This ensures that the long duration callback doesn't effectively block or cause to overflow queues of information arriving at the higher rate.

I am profiling using intel vtune, and It shows that the spintime is significant. Particularly it is spinning on some pthreadmutexlock. I think this is implemented in the AsyncSpinner. I would like to make spinner sleep in between periodic checks to callOne() or callAvailable().

Is there a way to do this?

Asked by PeterMilani on 2018-10-10 21:01:26 UTC

Comments

Premise for Async spinner was not correct. There is a timeout when waiting for callback queues to fill. CLosing

Asked by PeterMilani on 2018-10-10 23:01:07 UTC

Answers