From e1f02b4629ec582cbc9e61ee49a74ac86065cc96 Mon Sep 17 00:00:00 2001 From: Weijie Wang Date: Thu, 25 Jan 2024 16:07:05 +0800 Subject: [PATCH] os/threading: fix assert in debug build --- src/xrt/auxiliary/os/os_threading.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/auxiliary/os/os_threading.h b/src/xrt/auxiliary/os/os_threading.h index 471105534..e36cc1289 100644 --- a/src/xrt/auxiliary/os/os_threading.h +++ b/src/xrt/auxiliary/os/os_threading.h @@ -167,7 +167,7 @@ os_mutex_recursive_destroy(struct os_mutex *om) assert(om->initialized); assert(om->recursive); - os_mutex_destroy(om); + pthread_mutex_destroy(&om->mutex); #ifndef NDEBUG om->initialized = false;