diff options
| author | 2024-10-19 11:07:04 -0400 | |
|---|---|---|
| committer | 2024-10-19 11:18:15 -0400 | |
| commit | b8abe660fab174d37f8f49142f2261e93f463527 (patch) | |
| tree | 407b1e7c9113ca2d628775bf7d6921e93df722d2 /src/util/thread | |
| parent | 9e63fb59e7b8506183172869ea44b68cdec29be5 (diff) | |
| download | libnaunet-b8abe660fab174d37f8f49142f2261e93f463527.tar.gz libnaunet-b8abe660fab174d37f8f49142f2261e93f463527.tar.bz2 libnaunet-b8abe660fab174d37f8f49142f2261e93f463527.zip | |
Simplify packet_pool, various fixes
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/util/thread')
| -rw-r--r-- | src/util/thread/thread_windows.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) |