summaryrefslogtreecommitdiff
path: root/util/log.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2015-09-17 15:21:27 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2015-09-17 15:21:27 +0000
commitaf3dabbf15fa4d0e7e45a43fbf9a2195edfa941c (patch)
treeee00f42bccdce0e3581d05a17f58bb7429f0ceda /util/log.h
parent0ea28240053521a309698413a426b4d730a3d60c (diff)
Notes
Diffstat (limited to 'util/log.h')
-rw-r--r--util/log.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/util/log.h b/util/log.h
index ea283da7b262..8e85ee620b18 100644
--- a/util/log.h
+++ b/util/log.h
@@ -98,6 +98,15 @@ void log_file(FILE *f);
void log_thread_set(int* num);
/**
+ * Get the thread id from logging system. Set after log_init is
+ * initialised, or log_thread_set for newly created threads.
+ * This initialisation happens in unbound as a daemon, in daemon
+ * startup code, when that spawns threads.
+ * @return thread number, from 0 and up. Before initialised, returns 0.
+ */
+int log_thread_get(void);
+
+/**
* Set identity to print, default is 'unbound'.
* @param id: string to print. Name of executable.
*/