Убран time.h где он не нужен
This commit is contained in:
+3
-2
@@ -2,11 +2,12 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user