From 8fb1c09df1540aa3fca1148bed6a08ffc3090669 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Tue, 27 Oct 2026 19:15:22 +0100 Subject: All OSes now do have a cheap monotonic clock, so no caching thread is needed. Also add some relative time helpers --- tests/stubs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/stubs.c') diff --git a/tests/stubs.c b/tests/stubs.c index 09a7312..a8e6962 100644 --- a/tests/stubs.c +++ b/tests/stubs.c @@ -16,8 +16,7 @@ void free_peerlist(ot_peerlist *peer_list) { (void)peer_list; } /* ot_accesslist.c is built with WANT_ACCESSLIST_BLACK so that the hash parser is reachable. These two belong to accesslist_readfile and the reload worker, neither of which any test drives. */ -time_t g_now_seconds; -volatile int g_opentracker_running; +_Atomic int g_opentracker_running; /* ot_mutex.c wakes the main loop through the self pipe when a result is ready. The queue tests never get that far. */ -- cgit v1.3