summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index ad6c911..7d0693a 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -6,6 +6,7 @@
6#ifndef OT_TRACKERLOGIC_H__ 6#ifndef OT_TRACKERLOGIC_H__
7#define OT_TRACKERLOGIC_H__ 7#define OT_TRACKERLOGIC_H__
8 8
9#include <signal.h>
9#include <stdatomic.h> 10#include <stdatomic.h>
10#include <stdint.h> 11#include <stdint.h>
11#include <stdlib.h> 12#include <stdlib.h>
@@ -90,6 +91,9 @@ static inline ot_time time_future_seconds(int span) { return time_now_seconds()
90/* Cleared from the interrupt handler and read by every worker */ 91/* Cleared from the interrupt handler and read by every worker */
91extern _Atomic int g_opentracker_running; 92extern _Atomic int g_opentracker_running;
92 93
94/* Sent to a thread parked in a blocking read */
95#define OT_SIGNAL_WAKE SIGUSR1
96
93 97
94extern uint32_t g_tracker_id; 98extern uint32_t g_tracker_id;
95typedef enum { FLAG_TCP, FLAG_UDP, FLAG_MCA, FLAG_SELFPIPE } PROTO_FLAG; 99typedef enum { FLAG_TCP, FLAG_UDP, FLAG_MCA, FLAG_SELFPIPE } PROTO_FLAG;