diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/iotas/spin.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/iotas/spin.rb b/lib/iotas/spin.rb index 4c8e238..6383ff9 100644 --- a/lib/iotas/spin.rb +++ b/lib/iotas/spin.rb @@ -27,6 +27,7 @@ module Iotas super n, nil # @pool = {} # per particle class free list + @world = {} # global iotas index @sys_fifo = [] # system particles fifo list @app_fifo = [] # application particles fifo list # @@ -70,6 +71,14 @@ module Iotas self.new o['name'], o end # + def add_to_world iota + @world[iota.path] = iota + end + # + def search_world path + @world[path] + end + # def clear! @iotas.clear @pool.clear |