diff options
| author | Rider Linden <rider@lindenlab.com> | 2026-09-24 08:53:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-24 08:53:49 -0700 |
| commit | 546782857fef92f1c745d58e30275138ee1e49f8 (patch) | |
| tree | 589e466959202356f4e22ab628edee3e6838030a /indra/llcommon/workqueue.cpp | |
| parent | 818c337afa685221611a1beb67ca171437c6ec1d (diff) | |
| parent | 500587a04bf3a8793e8f32fe397e0b4e469aedb4 (diff) | |
Merge pull request #6371 from secondlife/rider/fix_6367
Fixes hang on exit
Diffstat (limited to 'indra/llcommon/workqueue.cpp')
| -rw-r--r-- | indra/llcommon/workqueue.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llcommon/workqueue.cpp b/indra/llcommon/workqueue.cpp index fbd92d089e..4f19ab2cc2 100644 --- a/indra/llcommon/workqueue.cpp +++ b/indra/llcommon/workqueue.cpp @@ -319,6 +319,12 @@ bool LL::WorkQueue::tryPost(const Work& callable) } } +bool LL::WorkQueue::postToMainLoop(const Work& work) +{ + auto queue = getInstance("mainloop"); + return queue && queue->tryPost(work); +} + LL::WorkQueue::Work LL::WorkQueue::pop_() { return mQueue.pop(); |
