summaryrefslogtreecommitdiffstats
path: root/trace2/tr2_tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'trace2/tr2_tls.h')
-rw-r--r--trace2/tr2_tls.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/trace2/tr2_tls.h b/trace2/tr2_tls.h
index 65836b1399..a064b66e4c 100644
--- a/trace2/tr2_tls.h
+++ b/trace2/tr2_tls.h
@@ -2,6 +2,7 @@
#define TR2_TLS_H
#include "strbuf.h"
+#include "trace2/tr2_tmr.h"
/*
* Notice: the term "TLS" refers to "thread-local storage" in the
@@ -20,6 +21,9 @@ struct tr2tls_thread_ctx {
size_t alloc;
size_t nr_open_regions; /* plays role of "nr" in ALLOC_GROW */
int thread_id;
+ struct tr2_timer_block timer_block;
+ unsigned int used_any_timer:1;
+ unsigned int used_any_per_thread_timer:1;
};
/*
@@ -107,4 +111,10 @@ int tr2tls_locked_increment(int *p);
*/
void tr2tls_start_process_clock(void);
+/*
+ * Explicitly lock/unlock our mutex.
+ */
+void tr2tls_lock(void);
+void tr2tls_unlock(void);
+
#endif /* TR2_TLS_H */