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
Moving functions to the right location and making them work.
[simgrid.git]
/
src
/
gras
/
Virtu
/
sg_process.c
diff --git
a/src/gras/Virtu/sg_process.c
b/src/gras/Virtu/sg_process.c
index
838a74c
..
0c51c0e
100644
(file)
--- a/
src/gras/Virtu/sg_process.c
+++ b/
src/gras/Virtu/sg_process.c
@@
-124,3
+124,13
@@
gras_procdata_t *gras_procdata_get(void) {
return pd;
}
return pd;
}
+const char* xbt_procname(void) {
+ const char *res = NULL;
+ m_process_t process = MSG_process_self();
+ if ((process != NULL) && (process->simdata))
+ res = MSG_process_get_name(process);
+ if (res)
+ return res;
+ else
+ return "";
+}