Throttling AsyncSpinner Rate [closed]

asked 2018-10-10 21:01:26 -0500

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 pthread_mutex_lock. 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?

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant. Please see http://wiki.ros.org/Support for more details. by PeterMilani
close date 2018-10-10 23:00:20.897555

Comments

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

PeterMilani gravatar image PeterMilani  ( 2018-10-10 23:01:07 -0500 )edit