mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 22:28:46 +00:00
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:
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