Class: Rclrb::MutuallyExclusiveCallbackGroup

Inherits:
CallbackGroupBase show all
Defined in:
lib/rclrb/callback_group.rb

Overview

Callbacks in a mutually exclusive group are executed one at a time.

Instance Method Summary collapse

Methods inherited from CallbackGroupBase

#add, #initialize

Constructor Details

This class inherits a constructor from Rclrb::CallbackGroupBase

Instance Method Details

#spin(wait_set = nil) ⇒ Object



15
16
17
18
19
# File 'lib/rclrb/callback_group.rb', line 15

def spin(wait_set = nil)
  Thread.new do
    threads = @members.each { |m| m.spin wait_set }
  end
end