aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/linux/powerpc.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-11-09 18:27:12 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-11-09 18:31:03 -0700
commit008b0ec5e58fc7e31f3b989868a7d1ea4df3f41d (patch)
tree99374a7b0f5dc0bf56fc5daff702eecb7758d4f5 /lib/std/os/linux/powerpc.zig
parent65e518e8e8ab74b276c5a284caebfad4e5aa502c (diff)
downloadzig-008b0ec5e58fc7e31f3b989868a7d1ea4df3f41d.tar.gz
zig-008b0ec5e58fc7e31f3b989868a7d1ea4df3f41d.zip
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
Diffstat (limited to 'lib/std/os/linux/powerpc.zig')
0 files changed, 0 insertions, 0 deletions