Xamla / torch-ros

Torch7/lua wrapper of roscpp via ffi.
http://www.xamla.com/
BSD 3-Clause "New" or "Revised" License
20 stars 5 forks source link

Potential deadlock in subscriber callback #12

Closed mitsch closed 7 years ago

mitsch commented 7 years ago

When entering the method triggerCallbacks in the Subscriber module, there is a potential deadlock. If messages arrive at higher rate than they are processed by the callbacks, the loop will never exit. The deadlock happens, if two subscriber have to be checked, but only one will be checked because of its fast incoming messages.

If only a finite amount of messages is considered, the deadlock will be avoided.