class Pwrake::LifoHrfQueueArray
LIFO + HRF
Public Class Methods
new(nproc)
click to toggle source
# File lib/pwrake/queue/queue_array.rb, line 134 def initialize(nproc) @a = LifoQueueArray.new(nproc) hrf_init(nproc) end
Public Instance Methods
delete(t)
click to toggle source
# File lib/pwrake/queue/queue_array.rb, line 149 def delete(t) if x=@a.delete(t) hrf_delete(t) end x end
pop_super(host_info, rank)
click to toggle source
# File lib/pwrake/queue/queue_array.rb, line 156 def pop_super(host_info, rank) @a.shift(host_info, rank) end
push(t)
click to toggle source
# File lib/pwrake/queue/queue_array.rb, line 139 def push(t) @a.push(t) hrf_push(t) end
shift(host_info, rank)
click to toggle source
# File lib/pwrake/queue/queue_array.rb, line 144 def shift(host_info, rank) return nil if empty? hrf_get(host_info, rank) end