summaryrefslogtreecommitdiff
path: root/lib/timer.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2021-06-18 18:10:42 +0200
committerMaria Matejka <mq@ucw.cz>2021-11-22 19:05:43 +0100
commitfeb17ced234bad13ae64b52a3f86241f74517997 (patch)
treeac334b42f11ae89d650eb39f6e2d736ed78e9ae7 /lib/timer.h
parentb5061659d3cc011118024861c2f048e67affbd39 (diff)
Dropping the POSIX thread-local variables in favor of much easier-to-use C11 thread-local variables
Diffstat (limited to 'lib/timer.h')
-rw-r--r--lib/timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/timer.h b/lib/timer.h
index c5ea430c..bc568ee6 100644
--- a/lib/timer.h
+++ b/lib/timer.h
@@ -42,6 +42,7 @@ static inline timer *timers_first(struct timeloop *loop)
{ return (loop->timers.used > 1) ? loop->timers.data[1] : NULL; }
extern struct timeloop main_timeloop;
+extern _Thread_local struct timeloop *local_timeloop;
btime current_time(void);
btime current_real_time(void);