mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
port pthread_mutex_t and pthread_cond_t from sys/unix cause miniaudio wants it
This commit is contained in:
Vendored
+7
-7
@@ -1,18 +1,18 @@
|
||||
#+build !windows
|
||||
package miniaudio
|
||||
|
||||
import "core:sys/unix"
|
||||
import "core:sys/posix"
|
||||
import "core:c"
|
||||
|
||||
thread :: unix.pthread_t
|
||||
mutex :: unix.pthread_mutex_t
|
||||
thread :: posix.pthread_t
|
||||
mutex :: posix.pthread_mutex_t
|
||||
event :: struct {
|
||||
value: u32,
|
||||
lock: unix.pthread_mutex_t,
|
||||
cond: unix.pthread_cond_t,
|
||||
lock: posix.pthread_mutex_t,
|
||||
cond: posix.pthread_cond_t,
|
||||
}
|
||||
semaphore :: struct {
|
||||
value: c.int,
|
||||
lock: unix.pthread_mutex_t,
|
||||
cond: unix.pthread_cond_t,
|
||||
lock: posix.pthread_mutex_t,
|
||||
cond: posix.pthread_cond_t,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user