port pthread_mutex_t and pthread_cond_t from sys/unix cause miniaudio wants it

This commit is contained in:
Laytan committed 2024-10-28 19:42:27 +01:00
1 parent 0b4a4212bb
commit b7140875cf
2 files changed
+51 -11

No files matched your search

+7 -7
View File
@@ -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,
}