diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-26 15:38:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-26 15:38:46 +0100 |
| commit | d4d26c954f4e61b1b1a526c56d88dfd51b6fab48 (patch) | |
| tree | 8d1fca74ff1be621887a8ac39e91d947f84f9d31 /src/lib/cross_linux.cc | |
| parent | cee4765caf903bf4b60e0e7539eaa2dae2bfa952 (diff) | |
wip: hacks.new-signals
Diffstat (limited to 'src/lib/cross_linux.cc')
| -rw-r--r-- | src/lib/cross_linux.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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; +} + |
