Sha256: 65c3a6530dabd90ccbb235d49a7d6ad3273525f95b465b9e091d2cfcdf0c8350

Contents?: true

Size: 785 Bytes

Versions: 83

Compression:

Stored size: 785 Bytes

Contents

# XXX no thread
#require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper'
#require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes'
#
#describe "ThreadGroup#list" do
#  it "returns the list of threads in the group" do
#    chan = Channel.new
#    th1 = Thread.new { chan << :go; sleep }
#    chan.receive.should == :go
#    tg = ThreadGroup.new
#    tg.add(th1)
#    tg.list.should include(th1)
#
#    th2 = Thread.new { chan << :go; sleep }
#    chan.receive.should == :go
#
#    tg.add(th2)
#    (tg.list & [th1, th2]).should include(th1, th2)
#
#    Thread.pass while th1.status and th1.status != 'sleep'
#    Thread.pass while th2.status and th2.status != 'sleep'
#    th1.run; th1.join
#    th2.run; th2.join
#  end
#end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
rhodes-1.4.2 spec/framework_spec/app/spec/core/threadgroup/list_spec.rb
rhodes-1.4.1 spec/framework_spec/app/spec/core/threadgroup/list_spec.rb
rhodes-1.4.0 spec/framework_spec/app/spec/core/threadgroup/list_spec.rb