* Retrieves the backtrace for the calling thread * @returns BackTrace instance */
| 102 | * @returns BackTrace instance |
| 103 | */ |
| 104 | BackTrace getBackTrace(std::string thread_name) { |
| 105 | #ifdef WIN32 |
| 106 | // currrently not supported in windows |
| 107 | return BackTrace(std::move(thread_name)); |
| 108 | #else |
| 109 | return getBackTrace(std::move(thread_name), pthread_self()); |
| 110 | #endif |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * Returns a static instance of the thread resolver. |