= private = protected
new(max)
Creates a fixed-length queue with a maximum size of max.
# File lib/thread.rb, line 247 def initialize(max) raise ArgumentError, "queue size must be positive" unless max > 0 @max = max @queue_wait = [] @queue_wait.taint # enable tainted comunication super() end