A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
dcf893e
)
Sorry for this.
author
navarro
<navarro@caraja.(none)>
Wed, 30 May 2012 12:58:35 +0000
(14:58 +0200)
committer
navarro
<navarro@caraja.(none)>
Wed, 30 May 2012 12:58:35 +0000
(14:58 +0200)
examples/lua/state_cloner/deployment_duplicated_globals.xml
patch
|
blob
|
history
examples/lua/state_cloner/duplicated_globals.lua
patch
|
blob
|
history
examples/lua/state_cloner/duplicated_globals.tesh
patch
|
blob
|
history
diff --git
a/examples/lua/state_cloner/deployment_duplicated_globals.xml
b/examples/lua/state_cloner/deployment_duplicated_globals.xml
index
91a3f46
..
aca6202
100644
(file)
--- a/
examples/lua/state_cloner/deployment_duplicated_globals.xml
+++ b/
examples/lua/state_cloner/deployment_duplicated_globals.xml
@@
-7,7
+7,7
@@
<process host="Bourassa" function="replace">
<argument value="Calling replace() from Bourassa"/>
</process>
<process host="Bourassa" function="replace">
<argument value="Calling replace() from Bourassa"/>
</process>
- <process host="Jupiter" function="please_don
'
t_replace_me">
- <argument value="Calling please_don
'
t_replace_me() from Jupiter"/>
+ <process host="Jupiter" function="please_dont_replace_me">
+ <argument value="Calling please_dont_replace_me() from Jupiter"/>
</process>
</platform>
</process>
</platform>
diff --git
a/examples/lua/state_cloner/duplicated_globals.lua
b/examples/lua/state_cloner/duplicated_globals.lua
index
c0e1518
..
70366bb
100644
(file)
--- a/
examples/lua/state_cloner/duplicated_globals.lua
+++ b/
examples/lua/state_cloner/duplicated_globals.lua
@@
-13,19
+13,19
@@
function set_global_string(...)
print_global()
end
print_global()
end
--- Replaces the function please_don
'
t_change_me() by set_global_string()
+-- Replaces the function please_dont_change_me() by set_global_string()
-- and calls it
function replace(...)
-- and calls it
function replace(...)
- simgrid.info("Overwriting function please_don
'
t_replace_me()")
- please_don
'
t_replace_me = set_global_string
- please_don
'
t_replace_me(...)
+ simgrid.info("Overwriting function please_dont_replace_me()")
+ please_dont_replace_me = set_global_string
+ please_dont_replace_me(...)
end
-- Shows a hello message and prints the global string
end
-- Shows a hello message and prints the global string
-function please_don
'
t_replace_me(...)
+function please_dont_replace_me(...)
- simgrid.info("Hello from please_don
'
t_replace_me(). I'm lucky, I still exist in this state.")
+ simgrid.info("Hello from please_dont_replace_me(). I'm lucky, I still exist in this state.")
print_global()
end
print_global()
end
diff --git
a/examples/lua/state_cloner/duplicated_globals.tesh
b/examples/lua/state_cloner/duplicated_globals.tesh
index
97ade40
..
c8029d7
100644
(file)
--- a/
examples/lua/state_cloner/duplicated_globals.tesh
+++ b/
examples/lua/state_cloner/duplicated_globals.tesh
@@
-4,8
+4,8
@@
$ lua duplicated_globals.lua
> [0.000000] [lua/INFO] Global string is 'A global string set by maestro'
> [Tremblay:set_global_string:(1) 0.000000] [lua/INFO] Changing the global string
> [Tremblay:set_global_string:(1) 0.000000] [lua/INFO] Global string is 'Calling set_global_string() from Tremblay'
> [0.000000] [lua/INFO] Global string is 'A global string set by maestro'
> [Tremblay:set_global_string:(1) 0.000000] [lua/INFO] Changing the global string
> [Tremblay:set_global_string:(1) 0.000000] [lua/INFO] Global string is 'Calling set_global_string() from Tremblay'
-> [Bourassa:replace:(2) 0.000000] [lua/INFO] Overwriting function please_don
'
t_replace_me()
+> [Bourassa:replace:(2) 0.000000] [lua/INFO] Overwriting function please_dont_replace_me()
> [Bourassa:replace:(2) 0.000000] [lua/INFO] Changing the global string
> [Bourassa:replace:(2) 0.000000] [lua/INFO] Global string is 'Calling replace() from Bourassa'
> [Bourassa:replace:(2) 0.000000] [lua/INFO] Changing the global string
> [Bourassa:replace:(2) 0.000000] [lua/INFO] Global string is 'Calling replace() from Bourassa'
-> [Jupiter:please_don
't_replace_me:(3) 0.000000] [lua/INFO] Hello from please_don'
t_replace_me(). I'm lucky, I still exist in this state.
-> [Jupiter:please_don
'
t_replace_me:(3) 0.000000] [lua/INFO] Global string is 'A global string set by maestro'
+> [Jupiter:please_don
t_replace_me:(3) 0.000000] [lua/INFO] Hello from please_don
t_replace_me(). I'm lucky, I still exist in this state.
+> [Jupiter:please_dont_replace_me:(3) 0.000000] [lua/INFO] Global string is 'A global string set by maestro'