]> AND Public Git Repository - simgrid.git/blobdiff - src/bindings/ruby/simgrid.rb
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not share the same argument container for every processes
[simgrid.git] / src / bindings / ruby / simgrid.rb
index a35501344c6b47777e6bdb971bd11b6ba2f8aaef..c82542a8838fbcdf0f26a68eea9b722da2b337f0 100644 (file)
@@ -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