Updates and fixes to Mutex (#933)

Updating Mutex to have specific types: TimedMutex, RecursiveMutex, TimedRecursiveMutex. Fixes to the win32 implementation.
This commit is contained in:
Christoffer Lerno
2023-08-16 15:45:49 +02:00
committed by GitHub
parent 8a4337e819
commit e694d60f23
5 changed files with 34 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ fn void! copy_map() @test
{
TrackingAllocator alloc;
alloc.init(mem::heap());
io::printfn("Heap mem: %d", alloc.allocated());
assert(alloc.allocated() == 0);
mem::@scoped(&alloc)
{
HashMap(<String, int>) x;