summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-20 09:16:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-20 09:16:32 +0000
commitfc57cd59ffe2cca34d6bd48962f0be47eed0f509 (patch)
treea1294fef6dabf6de477c60846fa10a2bb72ff0f8 /lib
parent5039daaf2e2c3c21c4b77397210b3e3cfe5e7af1 (diff)
matz - disappointing fixes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/thread.rb2
-rw-r--r--lib/thwait.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/thread.rb b/lib/thread.rb
index 12fe81c542..d4b6ad6ec1 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -223,7 +223,7 @@ class SizedQueue<Queue
def max=(max)
Thread.critical = true
- if @max >= max
+ if max >= @max
@max = max
Thread.critical = false
else
diff --git a/lib/thwait.rb b/lib/thwait.rb
index 45d6a89713..8003f0d3c7 100644
--- a/lib/thwait.rb
+++ b/lib/thwait.rb
@@ -115,7 +115,7 @@ class ThreadsWait
@threads.delete(th = @wait_queue.pop(nonblock))
th
rescue ThreadError
- ThreadsWait.fail ErrNoFinshedThread
+ ThreadsWait.fail ErrNoFinishedThread
end
end