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 1c8107085b..0bc95a2594 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -165,6 +165,7 @@ class Queue
@que.push obj
@cond.signal
end
+ self
end
end
@@ -228,6 +229,7 @@ class Queue
#
def clear
@que.clear
+ self
end
#
@@ -315,6 +317,7 @@ class SizedQueue < Queue
@que.push obj
@cond.signal
end
+ self
end
end