Class: XThreads

Inherits:
Object
  • Object
show all
Defined in:
lib/xthreads.rb

Overview

file: xthreads.rb

Defined Under Namespace

Classes: XThread

Instance Method Summary collapse

Constructor Details

#initializeXThreads

Returns a new instance of XThreads.



7
8
9
# File 'lib/xthreads.rb', line 7

def initialize()
  @threads = {}
end

Instance Method Details

#create_loop(name, options = {}, &blk) ⇒ Object



55
56
57
58
# File 'lib/xthreads.rb', line 55

def create_loop(name, options={}, &blk)
  @threads[name] = XThread.new name, options, &blk
  @threads[name]
end

#listObject



60
61
62
# File 'lib/xthreads.rb', line 60

def list()
  @threads
end