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
s/gras_process_getpid/gras_os_getpid/
[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
0c51c0e
..
018225f
100644
(file)
--- a/
src/gras/Virtu/sg_process.c
+++ b/
src/gras/Virtu/sg_process.c
@@
-134,3
+134,11
@@
const char* xbt_procname(void) {
else
return "";
}
+
+int gras_os_getpid(void) {
+ m_process_t process = MSG_process_self();
+ if ((process != NULL) && (process->simdata))
+ return MSG_process_get_PID(MSG_process_self());
+ else
+ return 0;
+}