zig/lib/std/os
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
..
linux io_uring: skip statx test failure on older kernels 2021-11-09 18:31:03 -07:00
uefi fix(uefi MemoryDescriptor): padding after memory type 2021-10-25 16:43:23 -04:00
windows migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
linux.zig std: expose rusage constants under rusage namespace 2021-11-01 15:55:22 -07:00
test.zig Initial bringup of the Solaris/Illumos port 2021-09-24 14:06:16 -04:00
uefi.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
wasi.zig std.os fixes to get the test suite passing again 2021-09-01 17:54:07 -07:00
windows.zig std.Thread.Mutex: change API to lock() and unlock() 2021-11-09 18:31:03 -07:00