mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-31 10:17:44 -04:00
16 lines
344 B
Odin
16 lines
344 B
Odin
#+build darwin
|
|
#+private
|
|
package thread
|
|
|
|
import "core:sys/posix"
|
|
import "core:c"
|
|
|
|
_MAX_PTHREAD_NAME_LENGTH :: 64
|
|
|
|
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 ---
|
|
}
|