From 547598c61cb23f2e1bca50ced5f15e298962e14e Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 16 Dec 2019 15:47:23 +1100 Subject: [PATCH] [common] locked section macro should use it's argument --- common/include/common/locking.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/include/common/locking.h b/common/include/common/locking.h index 609fd84b..edde8856 100644 --- a/common/include/common/locking.h +++ b/common/include/common/locking.h @@ -29,7 +29,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA #define INTERLOCKED_SECTION(lock, x) \ while(__sync_lock_test_and_set(&(lock), 1)) while((lock)); \ x\ - __sync_lock_release(&this->deviceContextLock); + __sync_lock_release(&(lock)); #else #define INTERLOCKED_OR8 InterlockedOr8