class LightIO::Library::ThreadGroup
Constants
- Default
Public Instance Methods
add(thread)
click to toggle source
# File lib/lightio/library/thread.rb, line 10 def add(thread) if @obj.enclosed? raise ThreadError, "can't move from the enclosed thread group" elsif thread.is_a?(LightIO::Library::Thread) # let thread decide how to add to group thread.send(:add_to_group, self) else @obj.add(thread) end self end
list()
click to toggle source
# File lib/lightio/library/thread.rb, line 22 def list @obj.list + threads end
Private Instance Methods
threads()
click to toggle source
# File lib/lightio/library/thread.rb, line 27 def threads @threads ||= [] end