Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
further simplifications to ruby: kill useless ProcessFactory (should to the same...
[simgrid.git] / src / bindings / ruby / MasterSlave.rb
index 6f809f2..0156cc9 100644 (file)
@@ -1,3 +1,6 @@
+# Debug it with this command:
+# make -C ../.. && valgrind ruby MasterSlave.rb --log=ruby.thres:debug 2>&1 | less
+
 require 'simgrid'
 include MSG
 
@@ -6,11 +9,6 @@ include MSG
 #################################################
 
 class Master < MsgProcess  
-  def initialize2()
-    super()
-  end
-  
   # msg_main : that function that will be executed when Running Simulation
   def msg_main(args) # args is an array containing arguments for function master
     info("Hello From Master")
@@ -54,11 +52,6 @@ end
 # Class Slave
 #################################################
 class Slave < MsgProcess
-  
-  def initialize()
-    super()
-  end
-  
  # msg_main : that function that will be executed when Running Simulation
   def msg_main(args)
     info("Hello From Slave")