mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-26 07:25:00 -07:00
Keep -vet happy
This commit is contained in:
@@ -29,7 +29,6 @@ _futex_wait :: proc(f: ^Futex, expected: u32) -> Futex_Error {
|
||||
|
||||
_futex_wait_with_timeout :: proc(f: ^Futex, expected: u32, duration: time.Duration) -> Futex_Error {
|
||||
timeout_ns := u64(duration)
|
||||
timeout_overflowed := false
|
||||
|
||||
s := __ulock_wait2(UL_COMPARE_AND_WAIT | ULF_NO_ERRNO, f, u64(expected), timeout_ns, 0)
|
||||
if s >= 0 {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package sync2
|
||||
|
||||
import "core:time"
|
||||
|
||||
Atomic_Mutex_State :: enum Futex {
|
||||
Unlocked = 0,
|
||||
Locked = 1,
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
//+private
|
||||
package sync2
|
||||
|
||||
import "core:time"
|
||||
import "core:c"
|
||||
import "core:intrinsics"
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
//+private
|
||||
package sync2
|
||||
|
||||
import "core:time"
|
||||
import "core:runtime"
|
||||
import "core:sys/unix"
|
||||
|
||||
_Mutex_State :: enum i32 {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
//+private
|
||||
package sync2
|
||||
|
||||
import "core:time"
|
||||
import win32 "core:sys/windows"
|
||||
|
||||
_current_thread_id :: proc "contextless" () -> int {
|
||||
@@ -54,8 +53,6 @@ _rw_mutex_try_shared_lock :: proc(rw: ^RW_Mutex) -> bool {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
_Cond :: struct {
|
||||
cond: win32.CONDITION_VARIABLE,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user