From d4d26c954f4e61b1b1a526c56d88dfd51b6fab48 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 26 Oct 2025 15:38:46 +0100 Subject: wip: hacks. --- src/lib/cross_linux.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/cross_linux.cc') diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc index c9d1322fe..aaf78c923 100644 --- a/src/lib/cross_linux.cc +++ b/src/lib/cross_linux.cc @@ -348,3 +348,12 @@ show_in_file_manager (boost::filesystem::path dir, boost::filesystem::path) return true; } + +string +thread_name() +{ + char buffer[16]; + pthread_getname_np(pthread_self(), buffer, sizeof(buffer)); + return buffer; +} + -- cgit v1.2.3