Keep -vet happy

This commit is contained in:
gingerBill
2021-10-09 16:35:26 +01:00
parent 2ef0e6b8f6
commit 2b8807eb73
5 changed files with 0 additions and 9 deletions
-1
View File
@@ -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 {
-2
View File
@@ -1,7 +1,5 @@
package sync2
import "core:time"
Atomic_Mutex_State :: enum Futex {
Unlocked = 0,
Locked = 1,
-1
View File
@@ -2,7 +2,6 @@
//+private
package sync2
import "core:time"
import "core:c"
import "core:intrinsics"
-2
View File
@@ -2,8 +2,6 @@
//+private
package sync2
import "core:time"
import "core:runtime"
import "core:sys/unix"
_Mutex_State :: enum i32 {
-3
View File
@@ -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,
}