From c95656c7c8741d0bf778d6432159feff56cae1b5 Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 4 Mar 2010 14:46:24 +0000 Subject: [PATCH 1/1] more debug git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7190 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/bindings/ruby/simgrid.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/ruby/simgrid.rb b/src/bindings/ruby/simgrid.rb index a35501344c..c82542a883 100644 --- a/src/bindings/ruby/simgrid.rb +++ b/src/bindings/ruby/simgrid.rb @@ -50,7 +50,7 @@ class Semaphore end def acquire - MSG::debug("Acquire "+self.to_s) + MSG::debug(Thread.current.to_s+" acquires "+self.to_s) Thread.critical = true if (@counter -= 1) < 0 @waiting_list.push(Thread.current) @@ -62,7 +62,7 @@ class Semaphore end def release - MSG::debug("Release "+self.to_s) + MSG::debug(Thread.current.to_s+" releases "+self.to_s) Thread.critical = true begin if (@counter += 1) <= 0 -- 2.20.1