Class: Rclrb::MutuallyExclusiveCallbackGroup
- Inherits:
-
CallbackGroupBase
- Object
- CallbackGroupBase
- Rclrb::MutuallyExclusiveCallbackGroup
- 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
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 |