summaryrefslogtreecommitdiffstats
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
commit48fd3fc32ba4763ecd89294eec74ac7ecd842cfc (patch)
treea1294fef6dabf6de477c60846fa10a2bb72ff0f8 /lib
parent0fdea5404852417794c67aeb1f3e33bc8dd9017e (diff)
downloadruby-48fd3fc32ba4763ecd89294eec74ac7ecd842cfc.tar.gz
ruby-48fd3fc32ba4763ecd89294eec74ac7ecd842cfc.tar.xz
ruby-48fd3fc32ba4763ecd89294eec74ac7ecd842cfc.zip
matz - disappointing fixes
git-svn-id: http://svn.ruby-lang.org/repos/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 12fe81c54..d4b6ad6ec 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 45d6a8971..8003f0d3c 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