zig/lib/std/heap
Andrew Kelley 008b0ec5e5 std.Thread.Mutex: change API to lock() and unlock()
This is a breaking change. Before, usage looked like this:

```zig
const held = mutex.acquire();
defer held.release();
```

Now it looks like this:

```zig
mutex.lock();
defer mutex.unlock();
```

The `Held` type was an idea to make mutexes slightly safer by making it
more difficult to forget to release an aquired lock. However, this
ultimately caused more problems than it solved, when any data structures
needed to store a held mutex. Simplify everything by reducing the API
down to the primitives: lock() and unlock().

Closes #8051
Closes #8246
Closes #10105
2021-11-09 18:31:03 -07:00
..
arena_allocator.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
general_purpose_allocator.zig std.Thread.Mutex: change API to lock() and unlock() 2021-11-09 18:31:03 -07:00
log_to_writer_allocator.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
logging_allocator.zig std.log: simplify to 4 distinct log levels 2021-10-24 15:04:29 -04:00