Class: Fairy::CSegShuffle::PortQueue
- Inherits:
-
XThread::Queue
- Object
- XThread::Queue
- Fairy::CSegShuffle::PortQueue
- Includes:
- Enumerable
- Defined in:
- lib/fairy/master/c-seg-shuffle.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize ⇒ PortQueue
constructor
A new instance of PortQueue.
Constructor Details
#initialize ⇒ PortQueue
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
#each ⇒ Object
81 82 83 84 85 |
# File 'lib/fairy/master/c-seg-shuffle.rb', line 81 def each while e = pop yield e end end |