diff options
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; +} + |
