# std.Thread: drop is_gnu check · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f10100cf9b3d6929f2ed2df64835b2773e117665)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f10100cf9b3d6929f2ed2df64835b2773e117665

Requested commit: f10100cf9b3d6929f2ed2df64835b2773e117665

Commit: f10100cf9b3d6929f2ed2df64835b2773e117665

Tree: 5d0bc50e2973e90ce2e532a2c84cf10081385844

Author: r00ster91

Committer: r00ster91

## Message

````
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.

````

## Parents

- [0b2ee093788ba84c5d130c021f347844b5939889](https://git.cafe/gitcafe/zig/commit/0b2ee093788ba84c5d130c021f347844b5939889?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f10100cf9b3d6929f2ed2df64835b2773e117665?format=markdown)
