diff options
| author | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-04-18 10:12:42 +0200 |
|---|---|---|
| committer | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-04-18 10:12:42 +0200 |
| commit | 38640d5d9e223c30889e33855c5fd953cc8ce37f (patch) | |
| tree | 601cb05353331e12235a7b3fc1fe6953f166dde1 /core/thread | |
| parent | 2055f2b93364dc9cab1e3a93fdc02d1c5fe4ac4f (diff) | |
Updated core lib and did cleanup
Updated core with some path related functions and did some minor code cleanup.
Most of the standard library function is just a matter of copy what is there for the other BSDs.
Diffstat (limited to 'core/thread')
| -rw-r--r-- | core/thread/thread_unix.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/thread/thread_unix.odin b/core/thread/thread_unix.odin index 3640251dd..c80d6854b 100644 --- a/core/thread/thread_unix.odin +++ b/core/thread/thread_unix.odin @@ -20,7 +20,7 @@ Thread_Os_Specific :: struct #align(16) { // It then waits for `start` to be called. // _create :: proc(procedure: Thread_Proc, priority: Thread_Priority) -> ^Thread { - __linux_thread_entry_proc :: proc "c" (t: rawptr) -> rawptr { + __unix_thread_entry_proc :: proc "c" (t: rawptr) -> rawptr { t := (^Thread)(t) when ODIN_OS != .Darwin { @@ -109,7 +109,7 @@ _create :: proc(procedure: Thread_Proc, priority: Thread_Priority) -> ^Thread { assert(res == 0) thread.procedure = procedure - if unix.pthread_create(&thread.unix_thread, &attrs, __linux_thread_entry_proc, thread) != 0 { + if unix.pthread_create(&thread.unix_thread, &attrs, __unix_thread_entry_proc, thread) != 0 { free(thread, thread.creation_allocator) return nil } |