summaryrefslogtreecommitdiff
path: root/sample/drb/name.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/drb/name.rb')
-rw-r--r--sample/drb/name.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/drb/name.rb b/sample/drb/name.rb
index 9527d47..30c902b 100644
--- a/sample/drb/name.rb
+++ b/sample/drb/name.rb
@@ -75,7 +75,7 @@ class Seq
def initialize(v, name)
@counter = v
- @mutex = Mutex.new
+ @mutex = Thread::Mutex.new
self.drb_name = name
end
@@ -90,7 +90,7 @@ end
class Front
def initialize
seq = Seq.new(0, 'seq')
- mutex = Mutex.new
+ mutex = Thread::Mutex.new
mutex.extend(DRbUndumped)
mutex.extend(DRbNamedObject)
mutex.drb_name = 'mutex'