diff options
| author | Beau McCartney <mccartney.beausl@gmail.com> | 2024-10-05 11:09:58 -0600 |
|---|---|---|
| committer | Beau McCartney <mccartney.beausl@gmail.com> | 2024-10-05 11:09:58 -0600 |
| commit | 2181a42bbf34f286304b510bd85c4c93fbdfb73c (patch) | |
| tree | 3780279df298bb2fac5ed9567e7efb7219898d5c /core/sys | |
| parent | cf8f138c6177cfe85ca7b9b1b0dc4e01ecd686ad (diff) | |
rename mach import cause its not just for threads now
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/darwin/mach_darwin.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sys/darwin/mach_darwin.odin b/core/sys/darwin/mach_darwin.odin index ac33ebb62..dacd20473 100644 --- a/core/sys/darwin/mach_darwin.odin +++ b/core/sys/darwin/mach_darwin.odin @@ -1,6 +1,6 @@ package darwin -foreign import pthread "system:System.framework" +foreign import mach "system:System.framework" import "core:c" @@ -15,7 +15,7 @@ kern_return_t :: distinct u64 thread_act_t :: distinct u64 @(default_calling_convention="c") -foreign pthread { +foreign mach { mach_task_self :: proc() -> task_t --- semaphore_create :: proc(task: task_t, semaphore: ^semaphore_t, policy, value: c.int) -> kern_return_t --- |