Add thread.Pool with example in demo.odin; Update linalg to support handness changes for projection matrices

This commit is contained in:
gingerBill
2020-01-02 15:07:12 +00:00
parent 16a7c55334
commit 3bd00fd6b7
8 changed files with 244 additions and 43 deletions
+3 -1
View File
@@ -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 ---;
}
}