A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an example for waitany fct.
[simgrid.git]
/
examples
/
ruby
/
MasterSlave.rb
diff --git
a/examples/ruby/MasterSlave.rb
b/examples/ruby/MasterSlave.rb
index
bd6f69f
..
198c4ca
100644
(file)
--- a/
examples/ruby/MasterSlave.rb
+++ b/
examples/ruby/MasterSlave.rb
@@
-4,7
+4,6
@@
include MSG
# Class Master
#################################################
# Class Master
#################################################
-
class Master < MSG::Process
# main : that function that will be executed when running simulation
class Master < MSG::Process
# main : that function that will be executed when running simulation
@@
-41,6
+40,9
@@
class Master < MSG::Process
MSG::info("Master : Everything's Done")
end
end
MSG::info("Master : Everything's Done")
end
end
+
+# end_of_master
+
#################################################
# Class Slave
#################################################
#################################################
# Class Slave
#################################################
@@
-63,6
+65,9
@@
class Slave < MSG::Process
MSG::info("I'm done, see you")
end
end
MSG::info("I'm done, see you")
end
end
+
+# end_of_slave
+
#################################################
# main chunck
#################################################
#################################################
# main chunck
#################################################