Andrew Kelley
a98fa56ae9
std: [breaking] move errno to become an nonexhaustive enum
...
The primary purpose of this change is to eliminate one usage of
`usingnamespace` in the standard library - specifically the usage for
errno values in `std.os.linux`.
This is accomplished by truncating the `E` prefix from error values, and
making errno a proper enum.
A similar strategy can be used to eliminate some other `usingnamespace`
sites in the std lib.
2021-08-24 01:23:28 -04:00
Thom Chiovoloni
c2635f9b02
Fix darwin ulock usage on macOS ( #9545 )
...
* Fix darwin ulock usage on macOS
* Fix review comments, and correctly handle timeout overflow on darwin
* Apply more review suggestions
2021-08-13 22:43:42 -05:00
kprotty
98106b09d5
zig fmt
2021-06-30 21:49:38 -05:00
kprotty
f0fa129e9b
std.Thread: more cleanup & testing
2021-06-30 21:49:00 -05:00
kprotty
7b323f84ca
std.Thread: more fixes
2021-06-30 21:49:00 -05:00
kprotty
fd4a607bb2
std.Thread: fix futex test + thread errors
2021-06-30 21:49:00 -05:00
kprotty
18bcb2e990
std.Thread: fix futex thread spawning
2021-06-30 21:49:00 -05:00
kprotty
1ae969e529
std.Thread: even more typo fixes
2021-06-30 21:49:00 -05:00
kprotty
ca1e61b851
std.Thread: fix some typos
2021-06-30 21:49:00 -05:00
kprotty
0a1def7833
changes to accomodate std.Thread update
2021-06-30 21:48:59 -05:00
jacob gw
b9f07b7ac2
format zig files and add formatting check to ci
2021-06-13 22:33:39 +03:00
protty
2ba68f9f4c
std.Thread.Futex addition ( #9070 )
...
* std.Thread.Futex: implementation + tests
* std.Thread.Futex: fix darwin compile errors
* std.Thread.Futex: fix wait() documentation typo
* std.Thread.Futex: fix darwin version check
* std.Thread.Futex: remove unnecessary comptime keyword
2021-06-12 08:51:37 -05:00