From 0f95c7d1056cab5bd8c6334cf601349ac4631457 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Thu, 29 Oct 2026 00:53:50 +0100 Subject: Revert last wake-up experiment. Having each udp worker wake up once a second to check if the tracker stops is wasteful --- trackerlogic.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'trackerlogic.h') diff --git a/trackerlogic.h b/trackerlogic.h index ad6c911..7d0693a 100644 --- a/trackerlogic.h +++ b/trackerlogic.h @@ -6,6 +6,7 @@ #ifndef OT_TRACKERLOGIC_H__ #define OT_TRACKERLOGIC_H__ +#include #include #include #include @@ -90,6 +91,9 @@ static inline ot_time time_future_seconds(int span) { return time_now_seconds() /* Cleared from the interrupt handler and read by every worker */ extern _Atomic int g_opentracker_running; +/* Sent to a thread parked in a blocking read */ +#define OT_SIGNAL_WAKE SIGUSR1 + extern uint32_t g_tracker_id; typedef enum { FLAG_TCP, FLAG_UDP, FLAG_MCA, FLAG_SELFPIPE } PROTO_FLAG; -- cgit v1.3