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
Fight for better integration of mmalloc, mc and xbt
[simgrid.git]
/
src
/
xbt
/
mmalloc
/
keys.c
diff --git
a/src/xbt/mmalloc/keys.c
b/src/xbt/mmalloc/keys.c
index
a63c805
..
8f168b8
100644
(file)
--- a/
src/xbt/mmalloc/keys.c
+++ b/
src/xbt/mmalloc/keys.c
@@
-32,11
+32,13
@@
mmalloc_setkey (void *md, int keynum, void *key)
struct mdesc *mdp = (struct mdesc *) md;
int result = 0;
+ LOCK(mdp);
if ((mdp != NULL) && (keynum >= 0) && (keynum < MMALLOC_KEYS))
{
mdp -> keys [keynum] = key;
result++;
}
+ UNLOCK(mdp);
return (result);
}