Method: XThread::RBQueue#push

Defined in:
lib/xthread.rb

#push(obj) ⇒ Object Also known as: <<, enq

Pushes obj to the queue.



70
71
72
73
74
75
# File 'lib/xthread.rb', line 70

def push(obj)
  @mutex.synchronize do
	@que.push obj
	@cond.signal
  end
end