Browse Source

util/simple_mtx: don't set the canary when it can't be checked

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
master
Eric Engestrom 6 years ago
parent
commit
1a837e803b
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/util/simple_mtx.h

+ 3
- 1
src/util/simple_mtx.h View File

} }


static inline void 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; mtx->val = _SIMPLE_MTX_INVALID_VALUE;
#endif
} }


static inline void static inline void

Loading…
Cancel
Save