Class: Fairy::CSegShuffle::PortQueue

Inherits:
XThread::Queue
  • Object
show all
Includes:
Enumerable
Defined in:
lib/fairy/master/c-seg-shuffle.rb

Instance Method Summary collapse

Constructor Details

#initializePortQueue

Returns a new instance of PortQueue.



77
78
79
# File 'lib/fairy/master/c-seg-shuffle.rb', line 77

def initialize
	super(XThread::Queue.new)
end

Instance Method Details

#eachObject



81
82
83
84
85
# File 'lib/fairy/master/c-seg-shuffle.rb', line 81

def each
	while e = pop
	  yield e
	end
end