summaryrefslogtreecommitdiff
path: root/indra/llcommon/workqueue.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-10-14 12:52:14 +0800
committerErik Kundiman <erik@megapahit.org>2026-10-14 12:52:14 +0800
commitb449791d3995c07bf6a910cd914344da3665ca9c (patch)
treed539ca35d068438c994eddee546eec4239d06bfd /indra/llcommon/workqueue.cpp
parentc9cfb87ee117edd7cb007534d27ffa11f1c54dbc (diff)
parentfac07196d86e899686c4f1ce88776b11a906cd58 (diff)
Merge tag 'Second_Life_Release#fac07196-26.5' into 26.5
Diffstat (limited to 'indra/llcommon/workqueue.cpp')
-rw-r--r--indra/llcommon/workqueue.cpp6
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();