From 8dfbe26ebcbfe010cf144149c01206a388fe55df Mon Sep 17 00:00:00 2001 From: ToyB-Chan Date: Tue, 9 Jun 2026 20:21:39 +0200 Subject: [PATCH] =?UTF-8?q?removed=20sch=C3=A4del=20lock=20mechanism?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- minimal_heap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/minimal_heap.h b/minimal_heap.h index cc77d0a..9491ca4 100644 --- a/minimal_heap.h +++ b/minimal_heap.h @@ -34,9 +34,9 @@ #endif #ifndef MIHP_HEAP_LOCK_TYPE - #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; } + #define MIHP_HEAP_LOCK_TYPE bool // Does NOT have to be reentred safe + #define MIHP_LOCK_HEAP(LockVarPtr) {} + #define MIHP_UNLOCK_HEAP(LockVarPtr) {} #endif /* */