mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-01 19:58:54 +00:00
14 lines
312 B
Odin
14 lines
312 B
Odin
#+build darwin
|
|
#+private
|
|
package thread
|
|
|
|
import "core:sys/posix"
|
|
import "core:c"
|
|
|
|
foreign import pthread "system:System.framework"
|
|
|
|
foreign pthread {
|
|
pthread_getname_np :: proc(thread: posix.pthread_t, name: [^]u8, len: c.size_t) -> posix.Errno ---
|
|
pthread_setname_np :: proc(name: [^]u8) -> posix.Errno ---
|
|
}
|