mirror of
https://github.com/ToyB-Chan/minimal-heap.git
synced 2026-07-13 21:51:16 +02:00
Update minimal_heap.h
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user