port pthread_mutex_t and pthread_cond_t from sys/unix cause miniaudio wants it
This commit is contained in:
1 parent
f342215b4d
commit
9f1c894f1f
2 files changed
+51
-11
No files matched your search
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