Common Trace Format 2 generation
[lttng-tools.git] / src / common / thread.hpp
diff --git a/src/common/thread.hpp b/src/common/thread.hpp
new file mode 100644 (file)
index 0000000..3d4e7bd
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com>
+ *
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ */
+
+#ifndef LTTNG_THREAD_H
+#define LTTNG_THREAD_H
+
+#include <common/macros.hpp>
+
+/*
+ * Set the current thread name on platforms that support it. The name can
+ * be of arbitrary length and will be truncated to the platform limit,
+ * usually 16.
+ */
+int lttng_thread_setname(const char *name);
+
+#endif /* LTTNG_THREAD_H */
This page took 0.024731 seconds and 5 git commands to generate.