summaryrefslogtreecommitdiff
path: root/lib/thread.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread.rb')
-rw-r--r--lib/thread.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/thread.rb b/lib/thread.rb
index e3aeed19fe0..47add67e89b 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -84,7 +84,7 @@ class ConditionVariable
# Wakes up the first thread in line waiting for this lock.
#
def signal
- Thread.async_interrupt_timing(RuntimeError => :on_blocking) do
+ Thread.async_interrupt_timing(StandardError => :on_blocking) do
begin
t = @waiters_mutex.synchronize {@waiters.shift}
t.run if t
@@ -99,7 +99,7 @@ class ConditionVariable
# Wakes up all threads waiting for this lock.
#
def broadcast
- Thread.async_interrupt_timing(RuntimeError => :on_blocking) do
+ Thread.async_interrupt_timing(StandardError => :on_blocking) do
waiters0 = nil
@waiters_mutex.synchronize do
waiters0 = @waiters.dup