Get current thread name
| 214 | public: |
| 215 | // Get current thread name |
| 216 | static std::string get_name() |
| 217 | { |
| 218 | if (!g_tls_this_thread) |
| 219 | { |
| 220 | return "not named_thread"; |
| 221 | } |
| 222 | |
| 223 | return *g_tls_this_thread->m_tname.load(); |
| 224 | } |
| 225 | |
| 226 | // Get thread name |
| 227 | template <typename T> |