summaryrefslogtreecommitdiff
path: root/sample/philos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/philos.rb')
-rw-r--r--sample/philos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/philos.rb b/sample/philos.rb
index 5c8f43c..622e58b 100644
--- a/sample/philos.rb
+++ b/sample/philos.rb
@@ -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