mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use qualified names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0df79477bd
commit
4b298ad77a
50 changed files with 100 additions and 93 deletions
|
@ -8,7 +8,7 @@ srand
|
|||
N=9 # number of philosophers
|
||||
$forks = []
|
||||
for i in 0..N-1
|
||||
$forks[i] = Mutex.new
|
||||
$forks[i] = Thread::Mutex.new
|
||||
end
|
||||
$state = "-o"*N
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue