| 243 | #endif /* __APPLE__ */ |
| 244 | |
| 245 | void SetCurrentThreadName([[maybe_unused]] const std::string &thread_name) |
| 246 | { |
| 247 | #if defined(__GLIBC__) |
| 248 | pthread_setname_np(pthread_self(), thread_name.c_str()); |
| 249 | #endif /* defined(__GLIBC__) */ |
| 250 | #if defined(__APPLE__) |
| 251 | MacOSSetThreadName(thread_name); |
| 252 | #endif /* defined(__APPLE__) */ |
| 253 | } |
no test coverage detected