mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 18:30:06 +00:00
Add thread.Pool with example in demo.odin; Update linalg to support handness changes for projection matrices
This commit is contained in:
@@ -51,6 +51,8 @@ foreign pthread {
|
||||
// know what you are doing!
|
||||
pthread_attr_setstack :: proc(attrs: ^pthread_attr_t, stack_ptr: rawptr, stack_size: u64) -> c.int ---;
|
||||
pthread_attr_getstack :: proc(attrs: ^pthread_attr_t, stack_ptr: ^rawptr, stack_size: ^u64) -> c.int ---;
|
||||
|
||||
pthread_yield :: proc() -> c.int ---;
|
||||
}
|
||||
|
||||
@(default_calling_convention="c")
|
||||
@@ -104,4 +106,4 @@ foreign pthread {
|
||||
pthread_mutexattr_setpshared :: proc(attrs: ^pthread_mutexattr_t, value: c.int) -> c.int ---;
|
||||
pthread_mutexattr_getpshared :: proc(attrs: ^pthread_mutexattr_t, result: ^c.int) -> c.int ---;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user