From 6bbd07c028563ca580831b88423acff20a9efa47 Mon Sep 17 00:00:00 2001 From: justuser-31 Date: Sat, 15 Feb 2025 09:30:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=20time.h=20?= =?UTF-8?q?=D0=B3=D0=B4=D0=B5=20=D0=BE=D0=BD=20=D0=BD=D0=B5=20=D0=BD=D1=83?= =?UTF-8?q?=D0=B6=D0=B5=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/threads.c | 5 +++-- libs/threads.h | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/threads.c b/examples/threads.c index 72045d6..57dfe0d 100644 --- a/examples/threads.c +++ b/examples/threads.c @@ -2,11 +2,12 @@ #include #include "../libs/threads.h" +#include "../libs/time.h" void* task() { while (1) { printf("Background task running\n"); - wait(1); + wait(1000); } return NULL; } @@ -16,7 +17,7 @@ int main() { start_thread(&thread_handle, task); printf("Main program continues\n"); - wait(5); + wait(5000); kill_thread(thread_handle); diff --git a/libs/threads.h b/libs/threads.h index f6d69f7..e7cc5d1 100644 --- a/libs/threads.h +++ b/libs/threads.h @@ -6,7 +6,6 @@ #endif #include -#include "time.h" void start_thread(void** thread_handle, void* (*task)(void*)) { #ifdef _WIN32