X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/99c64fec9d54f28cfa4e27923d886020c1db26d3..fe9f13ea487593ec11c6af50d8150a6743c84114:/src/xbt/mmalloc/mmprivate.h diff --git a/src/xbt/mmalloc/mmprivate.h b/src/xbt/mmalloc/mmprivate.h index 9e1c9b0e04..46fe161fcc 100644 --- a/src/xbt/mmalloc/mmprivate.h +++ b/src/xbt/mmalloc/mmprivate.h @@ -286,8 +286,8 @@ XBT_PUBLIC void* mmorecore(struct mdesc* mdp, ssize_t size); * in a model-checking enabled tree. Without this protection, our malloc * implementation will not like multi-threading AT ALL. */ -#define LOCK(mdp) pthread_mutex_lock(&mdp->mutex) -#define UNLOCK(mdp) pthread_mutex_unlock(&mdp->mutex) +#define LOCK(mdp) pthread_mutex_lock(&(mdp)->mutex) +#define UNLOCK(mdp) pthread_mutex_unlock(&(mdp)->mutex) XBT_PRIVATE int malloc_use_mmalloc(void);