projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d600b19
)
util/simple_mtx: don't set the canary when it can't be checked
author
Eric Engestrom
<eric.engestrom@intel.com>
Fri, 13 Dec 2019 17:12:48 +0000
(17:12 +0000)
committer
Eric Engestrom
<eric.engestrom@intel.com>
Fri, 13 Dec 2019 20:20:21 +0000
(20:20 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/util/simple_mtx.h
patch
|
blob
|
history
diff --git
a/src/util/simple_mtx.h
b/src/util/simple_mtx.h
index c0cc13b3663ec75fb49619482f41221b79e63cc6..b23c8d2133dd5e446dbaaac813141cf411416ea4 100644
(file)
--- a/
src/util/simple_mtx.h
+++ b/
src/util/simple_mtx.h
@@
-71,9
+71,11
@@
simple_mtx_init(simple_mtx_t *mtx, ASSERTED int type)
}
static inline void
-simple_mtx_destroy(simple_mtx_t *mtx)
+simple_mtx_destroy(
ASSERTED
simple_mtx_t *mtx)
{
+#ifndef NDEBUG
mtx->val = _SIMPLE_MTX_INVALID_VALUE;
+#endif
}
static inline void