From b8abe660fab174d37f8f49142f2261e93f463527 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 19 Oct 2024 11:07:04 -0400 Subject: Simplify packet_pool, various fixes Signed-off-by: Andrew Opalach --- src/util/thread/thread_windows.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/util/thread') diff --git a/src/util/thread/thread_windows.c b/src/util/thread/thread_windows.c index a58e1b1..b948d3e 100644 --- a/src/util/thread/thread_windows.c +++ b/src/util/thread/thread_windows.c @@ -4,9 +4,7 @@ NTSTATUS(__stdcall *NtDelayExecution)(BOOL Alertable, PLARGE_INTEGER DelayInterv void aki_thread_sleep(aki_os_tstamp delay) { - LARGE_INTEGER li; - li.QuadPart = -(s64)(delay * 1e7L); - NtDelayExecution(false, &li); + NtDelayExecution(false, &((LARGE_INTEGER){ .QuadPart = -(s64)(delay * 1e7L) })); } void aki_thread_create(struct aki_thread *thread, aki_thread_func func, void *userdata) -- cgit v1.2.3-101-g0448