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 authored and GitHub committed 2024-10-30 11:43:47 +00:00
commit ee76acd665
80 files changed
+1372 -1601

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,
}