diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-07-29 13:25:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-29 13:25:13 -0400 |
| commit | 192b5d24cb4651ed2c6b6b1e5fee017d40ea5aa5 (patch) | |
| tree | c98d0f66679a0d47ede96ce3acefcb224b1eb172 /lib/std/c/netbsd.zig | |
| parent | ed174b7386cb5a6f2008cb6a25c3ff684645d847 (diff) | |
| parent | df4fe8716374e4cfdf1dee2bbcda7969eb6d057a (diff) | |
| download | zig-192b5d24cb4651ed2c6b6b1e5fee017d40ea5aa5.tar.gz zig-192b5d24cb4651ed2c6b6b1e5fee017d40ea5aa5.zip | |
Merge pull request #8570 from vrischmann/thread-name
add Thread.setName and Thread.getName
Diffstat (limited to 'lib/std/c/netbsd.zig')
| -rw-r--r-- | lib/std/c/netbsd.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/c/netbsd.zig b/lib/std/c/netbsd.zig index 8e6d556fbc..32b7cc69e3 100644 --- a/lib/std/c/netbsd.zig +++ b/lib/std/c/netbsd.zig @@ -94,3 +94,6 @@ pub const pthread_attr_t = extern struct { }; pub const sem_t = ?*opaque {}; + +pub extern "c" fn pthread_setname_np(thread: std.c.pthread_t, name: [*:0]const u8, arg: ?*c_void) c_int; +pub extern "c" fn pthread_getname_np(thread: std.c.pthread_t, name: [*:0]u8, len: usize) c_int; |
