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 4e6d765686..936768fa9b 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -120,6 +120,7 @@ class Queue
Thread.critical = false
t.run if t
end
+ alias enq push
def pop non_block=false
Thread.critical = true
@@ -139,6 +140,8 @@ class Queue
Thread.critical = false
end
end
+ alias shift pop
+ alias deq pop
def empty?
@que.length == 0