]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: clock: stop exporting before_poll and after_poll
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 09:38:30 +0000 (11:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 15:22:26 +0000 (17:22 +0200)
We don't need to export them anymore so let's make them static.

include/haproxy/clock.h
src/clock.c

index 448b0c8d086cec5d7a40f2b8dbb3a3c7505625c7..73d4ef37c2856f61d5ede4fb236b89c38f5a3b46 100644 (file)
@@ -31,8 +31,6 @@ extern volatile ullong             global_now;    /* common monotonic date betwe
 
 extern THREAD_LOCAL struct timeval now;           /* internal monotonic date derived from real clock */
 extern THREAD_LOCAL struct timeval date;          /* the real current date (wall-clock time) */
-extern THREAD_LOCAL struct timeval before_poll;   /* system date before calling poll() */
-extern THREAD_LOCAL struct timeval after_poll;    /* system date after leaving poll() */
 
 uint64_t now_cpu_time_thread(const struct thread_info *thr);
 uint64_t now_mono_time(void);
index cd5ead7b44ddaab1dbcc99fe32fa64b1aeb6c8a1..ccb59c3cb39987bde0915a619b3bf00db1f5526e 100644 (file)
@@ -29,9 +29,9 @@ THREAD_ALIGNED(64) static ullong now_offset;      /* global offset between syste
 THREAD_LOCAL uint                now_ms;          /* internal monotonic date in milliseconds (may wrap) */
 THREAD_LOCAL struct timeval      now;             /* internal monotonic date derived from real clock */
 THREAD_LOCAL struct timeval      date;            /* the real current date (wall-clock time) */
-THREAD_LOCAL struct timeval      before_poll;     /* system date before calling poll() */
-THREAD_LOCAL struct timeval      after_poll;      /* system date after leaving poll() */
 
+static THREAD_LOCAL struct timeval before_poll;   /* system date before calling poll() */
+static THREAD_LOCAL struct timeval after_poll;    /* system date after leaving poll() */
 static THREAD_LOCAL unsigned int samp_time;       /* total elapsed time over current sample */
 static THREAD_LOCAL unsigned int idle_time;       /* total idle time over current sample */
 static THREAD_LOCAL unsigned int iso_time_sec;     /* last iso time value for this thread */