X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fthread.hpp;fp=src%2Fcommon%2Fthread.hpp;h=3d4e7bd29f925399acc9c6be4dabdd68b3e4450f;hb=7532fa3bd22e403958f46cd35c824f490d93292d;hp=0000000000000000000000000000000000000000;hpb=985aea182b618c85c51651f224abedfe367c75ee;p=lttng-tools.git diff --git a/src/common/thread.hpp b/src/common/thread.hpp new file mode 100644 index 000000000..3d4e7bd29 --- /dev/null +++ b/src/common/thread.hpp @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2020 Michael Jeanson + * + * SPDX-License-Identifier: LGPL-2.1-only + * + */ + +#ifndef LTTNG_THREAD_H +#define LTTNG_THREAD_H + +#include + +/* + * 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 */