summaryrefslogtreecommitdiff
path: root/indra/llcommon/workqueue.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-05-24 18:38:03 +0000
committerDave Parks <davep@lindenlab.com>2022-05-24 18:38:03 +0000
commit7fb07008fc1ab2b7a6d8da3d7079cf0fafda9928 (patch)
tree311d04d5aca4a4ab6d0660a6bd5af2fb7bd5e45b /indra/llcommon/workqueue.h
parent3365a39080744af0566adb7b6efd8e53fc6b3339 (diff)
parent9f9465f5bd2160f0245805e32644ce37f8c6cca6 (diff)
Merged in SL-17219 (pull request #992)
SL-17219
Diffstat (limited to 'indra/llcommon/workqueue.h')
-rw-r--r--indra/llcommon/workqueue.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/llcommon/workqueue.h b/indra/llcommon/workqueue.h
index 96574a18b9..784327f929 100644
--- a/indra/llcommon/workqueue.h
+++ b/indra/llcommon/workqueue.h
@@ -162,9 +162,15 @@ namespace LL
CALLABLE&& callable);
template <typename CALLABLE>
+ bool tryPost(const TimePoint& time, CALLABLE&& callable)
+ {
+ return mQueue.tryPush(TimedWork(time, std::move(callable)));
+ }
+
+ template <typename CALLABLE>
bool tryPost(CALLABLE&& callable)
{
- return mQueue.tryPush(TimedWork(TimePoint::clock::now(), std::move(callable)));
+ return mQueue.tryPush(TimePoint::clock::now(), std::move(callable));
}
/*------------------------- handshake API --------------------------*/