Browse Source

Add implementation for system::setThreadName for Linux

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
e314107e4a
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/system.cpp

+ 6
- 0
src/system.cpp View File

@@ -77,6 +77,12 @@ void createDirectory(const std::string &path) {
#endif
}

void setThreadName(const std::string &name) {
#if defined ARCH_LIN
pthread_setname_np(pthread_self(), name.c_str());
#endif
}

void openBrowser(const std::string &url) {
#if defined ARCH_LIN
std::string command = "xdg-open " + url;


Loading…
Cancel
Save