| 280 | } |
| 281 | |
| 282 | void StackContext::onThreadDetach() |
| 283 | { |
| 284 | #ifdef HXCPP_CATCH_SEGV |
| 285 | #ifdef _MSC_VER |
| 286 | _set_se_translator( mOldSignalFunc ); |
| 287 | #else |
| 288 | signal( SIGSEGV, mOldSignalFunc ); |
| 289 | #endif |
| 290 | #endif |
| 291 | |
| 292 | #ifdef HXCPP_DEBUGGER |
| 293 | if (mDebugger) |
| 294 | dbgCtxDetach(mDebugger); |
| 295 | #endif |
| 296 | |
| 297 | #ifdef HXCPP_TELEMETRY |
| 298 | if (mTelemetry) |
| 299 | tlmDetach(mTelemetry); |
| 300 | #endif |
| 301 | |
| 302 | #ifdef HXCPP_PROFILER |
| 303 | if (mProfiler) |
| 304 | profDetach(mProfiler,this); |
| 305 | #endif |
| 306 | |
| 307 | #ifdef HXCPP_STACK_IDS |
| 308 | { |
| 309 | std::lock_guard<std::mutex> guard(sStackMapMutex); |
| 310 | sStackMap.erase(mThreadId); |
| 311 | } |
| 312 | mThreadId = 0; |
| 313 | #endif |
| 314 | |
| 315 | #ifdef HXCPP_COMBINE_STRINGS |
| 316 | stringSet = 0; |
| 317 | #endif |
| 318 | } |
| 319 | |
| 320 | #ifdef HXCPP_STACK_IDS |
| 321 | void StackContext::getAllStackIds( QuickVec<int> &outIds ) |
nothing calls this directly
no test coverage detected