Browse files

Merge pull request #1978 from ryoqun/remove-prime-lock

Remove unused prime_lock arg from Thread#setup
  • Loading branch information...
2 parents 580680b + 8e8e6f2 commit 2336188d861d9a7b52537aa84f86a3def8db988f @dbussink dbussink committed Nov 1, 2012
Showing with 6 additions and 9 deletions.
  1. +1 −2 kernel/bootstrap/thread.rb
  2. +2 −3 kernel/bootstrap/thread18.rb
  3. +2 −3 kernel/bootstrap/thread19.rb
  4. +1 −1 kernel/delta/thread.rb
View
3 kernel/bootstrap/thread.rb
@@ -111,8 +111,7 @@ def self.new(*args)
run obj
dup
- push_false
- send :setup, 1, true
+ send :setup, 0, true
pop
run args
View
5 kernel/bootstrap/thread18.rb
@@ -13,8 +13,7 @@ def self.start(*args)
run obj
dup
- push_false
- send :setup, 1, true
+ send :setup, 0, true
pop
run args
@@ -99,7 +98,7 @@ def __run__()
end
end
- def setup(prime_lock)
+ def setup
@group = nil
@alive = true
@result = false
View
5 kernel/bootstrap/thread19.rb
@@ -10,8 +10,7 @@ def self.start(*args)
run obj
dup
- push_false
- send :setup, 1, true
+ send :setup, 0, true
pop
run args
@@ -87,7 +86,7 @@ def __run__()
end
end
- def setup(prime_lock)
+ def setup
@group = nil
@alive = true
@result = false
View
2 kernel/delta/thread.rb
@@ -1,7 +1,7 @@
# -*- encoding: us-ascii -*-
class Thread
- Thread.current.setup(true)
+ Thread.current.setup
Thread.initialize_main_thread(Thread.current)
dg = ThreadGroup.new
Default = dg

0 comments on commit 2336188

Please sign in to comment.