mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
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:
committed by
GitHub
parent
8a4337e819
commit
e694d60f23
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user