summaryrefslogtreecommitdiff
path: root/lib/thread.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread.rb')
-rw-r--r--lib/thread.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/thread.rb b/lib/thread.rb
index 7666bccecf7..1a08aa77615 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -249,6 +249,7 @@ class SizedQueue<Queue
super
end
alias << push
+ alias enq push
def pop(*args)
retval = super
@@ -269,6 +270,8 @@ class SizedQueue<Queue
end
retval
end
+ alias shift pop
+ alias deq pop
def num_waiting
@waiting.size + @queue_wait.size