summaryrefslogtreecommitdiff
path: root/lib/thread.h
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-01-14 14:15:03 -0500
committerGitHub <noreply@github.com>2022-01-14 14:15:03 -0500
commit25c44cf5de2a71c771996e7703819decf4299b18 (patch)
tree9b9db8cbe2520456c6964f6028144c1769572e47 /lib/thread.h
parentcce7c33396e8b30f92e3474860f78d0e21d01a57 (diff)
parent54929fd38a352bd8096383a7aa65cc89e0c8ab0c (diff)
Merge pull request #10339 from opensourcerouting/printfrr-20220114
lib: printfrr shenanigans
Diffstat (limited to 'lib/thread.h')
-rw-r--r--lib/thread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h
index 39f21da11d..49a70696d0 100644
--- a/lib/thread.h
+++ b/lib/thread.h
@@ -128,6 +128,10 @@ struct thread {
pthread_mutex_t mtx; /* mutex for thread.c functions */
};
+#ifdef _FRR_ATTRIBUTE_PRINTFRR
+#pragma FRR printfrr_ext "%pTH" (struct thread *)
+#endif
+
struct cpu_thread_history {
int (*func)(struct thread *);
atomic_size_t total_cpu_warn;