Ask Your Question
0

If publishes faster than calling SpinOnce, would CallBack Queue be filled up eventually?

asked 2012-10-22 20:58:12 -0600

Dumpsomer gravatar image

updated 2014-01-28 17:14:01 -0600

ngrennan gravatar image

If we have a publisher publishing at 40Hz, and the subscriber is calling SpinOnce at 20Hz, would our CallBack Queue be filled up eventually?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2012-10-22 21:19:00 -0600

Lorenz gravatar image

Depends on how long your callbacks run. But spinOnce does not just execute only one callback but it will empty the queue if possible and then return.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-10-22 20:58:12 -0600

Seen: 307 times

Last updated: Oct 22 '12