diff options
| author | Dave Parks <davep@lindenlab.com> | 2022-08-30 10:46:36 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2022-08-30 10:46:36 -0500 |
| commit | 197ac7cc2048fe4c259858f48946cd954782dfc2 (patch) | |
| tree | d838e4708ede7d910680b00932b5777d5967838a /indra/llcommon/workqueue.h | |
| parent | 302bf29242ef1acd6ef984d78c918a6f4b092a0a (diff) | |
| parent | 14af7cabdb80e1de0f5cb2c7e299bd61bc3321cc (diff) | |
Merge remote-tracking branch 'remotes/origin/DRTVWR-563' into DRTVWR-559
Diffstat (limited to 'indra/llcommon/workqueue.h')
| -rw-r--r-- | indra/llcommon/workqueue.h | 8 |
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 --------------------------*/ |
