diff options
author | Bernd Schubert <bschubert@ddn.com> | 2025-04-24 13:53:59 +0200 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-04-28 19:57:39 +0200 |
commit | ef533e2e3fedbd647726416fa7f36ca543ee13ea (patch) | |
tree | 5e5c7d34d7d0e3065777082898f6f922e9f42028 /lib/fuse_loop_mt.c | |
parent | c5a032b3410d7225ac0355355faa63565a209943 (diff) | |
download | libfuse-ef533e2e3fedbd647726416fa7f36ca543ee13ea.tar.gz |
Add a fuse_set_thread_name() helper
Avoid splattering the code with ifdef
Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Diffstat (limited to 'lib/fuse_loop_mt.c')
-rw-r--r-- | lib/fuse_loop_mt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/fuse_loop_mt.c b/lib/fuse_loop_mt.c index c13b476..46e2d6e 100644 --- a/lib/fuse_loop_mt.c +++ b/lib/fuse_loop_mt.c @@ -131,9 +131,7 @@ static void *fuse_do_work(void *data) struct fuse_mt *mt = w->mt; struct fuse_session *se = mt->se; -#ifdef HAVE_PTHREAD_SETNAME_NP - pthread_setname_np(pthread_self(), "fuse_worker"); -#endif + fuse_set_thread_name(pthread_self(), "fuse_worker"); while (!fuse_session_exited(se)) { int isforget = 0; |