diff options
| author | r00ster91 <r00ster91@proton.me> | 2023-02-24 20:58:09 +0100 |
|---|---|---|
| committer | r00ster91 <r00ster91@proton.me> | 2023-02-24 20:58:09 +0100 |
| commit | f10100cf9b3d6929f2ed2df64835b2773e117665 (patch) | |
| tree | 5d0bc50e2973e90ce2e532a2c84cf10081385844 /src/codegen/llvm.zig | |
| parent | 0b2ee093788ba84c5d130c021f347844b5939889 (diff) | |
| download | zig-f10100cf9b3d6929f2ed2df64835b2773e117665.tar.gz zig-f10100cf9b3d6929f2ed2df64835b2773e117665.zip | |
std.Thread: drop is_gnu check
I believe the reason we had that check in the first place was because for both `pthread_setname_np` and `pthread_getname_np` man says:
```
CONFORMING TO
These functions are nonstandard GNU extensions; hence the suffix "_np" (nonportable) in the names.
```
However, this `is_gnu` check was never consistently applied; it was
missing in `setName` in the Linux case. It is also missing on all other call sites for other platforms (macOS, iOS, et al.).
Though, that could be because it may only apply to Linux.
I think for a best-effort approach it is okay to drop this. It's probably less non-standard than man makes it out to be.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions
