diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-07-03 21:26:14 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-07-03 21:26:14 +0800 |
commit | 2df6ca5bc3e7931fcdddc57618a6d08547ba411b (patch) | |
tree | a126ef5814878704d137aa81c2851414e5d27a40 /indra/newview/llappviewer.cpp | |
parent | 9dee269eacd32c48627d3fcc243104a56f021bbc (diff) | |
parent | 900516a449c618c87517d295db7f76662e555d00 (diff) |
Merge tag 'Second_Life_Project#900516a4-glTF_Mesh_Import' into gltf_mesh_import
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r-- | indra/newview/llappviewer.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 0f9ee93d56..dc1a7d1dd1 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -5733,6 +5733,27 @@ void LLAppViewer::forceErrorThreadCrash() thread->start(); } +void LLAppViewer::forceExceptionThreadCrash() +{ + class LLCrashTestThread : public LLThread + { + public: + + LLCrashTestThread() : LLThread("Crash logging test thread") + { + } + + void run() + { + throw std::exception(); + } + }; + + LL_WARNS() << "This is a deliberate exception in a thread" << LL_ENDL; + LLCrashTestThread* thread = new LLCrashTestThread(); + thread->start(); +} + void LLAppViewer::initMainloopTimeout(std::string_view state, F32 secs) { if (!mMainloopTimeout) |