summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 18:55:18 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 18:55:18 +0000
commit028ca79f986448221361bf2e9c16ec9c3e3b734b (patch)
treebe2d2c34b8d2db3435d6befe5d8ac06e7eb51854 /lib
parent3357d88ada8ad44ecf267f5f2a1fb1df4e5cb8f4 (diff)
* lib/thread.rb (ConditionVariable#broadcast): s/RuntimeError/StandardError/
* lib/thread.rb (ConditionVariable#signal): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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