From 57ce5af8e629156fa6badd6e7a1249300172ede0 Mon Sep 17 00:00:00 2001 From: ToyB-Chan Date: Mon, 8 Jun 2026 19:52:30 +0200 Subject: [PATCH] Update minimal_heap.h --- minimal_heap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minimal_heap.h b/minimal_heap.h index 8172c10..70ad352 100644 --- a/minimal_heap.h +++ b/minimal_heap.h @@ -25,7 +25,7 @@ #endif #ifndef MIHP_HEAP_LOCK_TYPE - #define MIHP_HEAP_LOCK_TYPE bool // Does NOT have to be reentred safe + #define MIHP_HEAP_LOCK_TYPE volatile bool // Does NOT have to be reentred safe #define MIHP_LOCK_HEAP(LockVarPtr) { while (*(LockVarPtr)) {}; *(LockVarPtr) = true; } #define MIHP_UNLOCK_HEAP(LockVarPtr) { *(LockVarPtr) = false; } #endif