mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +00:00
rename mach import cause its not just for threads now
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
package darwin
|
package darwin
|
||||||
|
|
||||||
foreign import pthread "system:System.framework"
|
foreign import mach "system:System.framework"
|
||||||
|
|
||||||
import "core:c"
|
import "core:c"
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ kern_return_t :: distinct u64
|
|||||||
thread_act_t :: distinct u64
|
thread_act_t :: distinct u64
|
||||||
|
|
||||||
@(default_calling_convention="c")
|
@(default_calling_convention="c")
|
||||||
foreign pthread {
|
foreign mach {
|
||||||
mach_task_self :: proc() -> task_t ---
|
mach_task_self :: proc() -> task_t ---
|
||||||
|
|
||||||
semaphore_create :: proc(task: task_t, semaphore: ^semaphore_t, policy, value: c.int) -> kern_return_t ---
|
semaphore_create :: proc(task: task_t, semaphore: ^semaphore_t, policy, value: c.int) -> kern_return_t ---
|
||||||
|
|||||||
Reference in New Issue
Block a user