From ef533e2e3fedbd647726416fa7f36ca543ee13ea Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Thu, 24 Apr 2025 13:53:59 +0200 Subject: Add a fuse_set_thread_name() helper Avoid splattering the code with ifdef Signed-off-by: Bernd Schubert --- lib/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/util.h') diff --git a/lib/util.h b/lib/util.h index ed03ad4..d1939cf 100644 --- a/lib/util.h +++ b/lib/util.h @@ -9,6 +9,7 @@ #define unlikely(x) __builtin_expect(!!(x), 0) int libfuse_strtol(const char *str, long *res); +void fuse_set_thread_name(unsigned long tid, const char *name); /** * Return the low bits of a number @@ -36,4 +37,4 @@ static inline uint64_t fuse_higher_32_bits(uint64_t nr) ((type *)(__mptr - offsetof(type, member))); \ }) -#endif +#endif /* FUSE_UTIL_H_ */ -- cgit v1.2.3