Merge pull request #4427 from laytan/posix-additions

Finish sys/posix with Linux and partial Windows support & clean up other packages as a result
This commit is contained in:
gingerBill
2024-10-30 11:43:47 +00:00
committed by GitHub
80 changed files with 1372 additions and 1601 deletions
+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,
}