X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fthread.h;fp=src%2Fcommon%2Fthread.h;h=b73172269af838743bff6382eaed2dcd6ccf4acb;hp=0000000000000000000000000000000000000000;hb=cb8d0d245b5739e7493dcf27314f6e42615f14b1;hpb=97285430b75f44b6ce590e86cb9d996390e514c8 diff --git a/src/common/thread.h b/src/common/thread.h new file mode 100644 index 000000000..b73172269 --- /dev/null +++ b/src/common/thread.h @@ -0,0 +1,21 @@ +/* + * 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. + */ +LTTNG_HIDDEN +int lttng_thread_setname(const char *name); + +#endif /* LTTNG_THREAD_H */