summaryrefslogtreecommitdiff
path: root/indra/llcommon/lleventcoro.cpp
diff options
context:
space:
mode:
authorAiraYumi <aira.youme@airanyumi.net>2024-01-13 15:36:45 +0900
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-01-16 15:51:58 +0200
commit382f9f0786b5225ac6d9648241e6c04f4f94f262 (patch)
treea76b7d679866c5df2e6141b1aad7f46b763c70af /indra/llcommon/lleventcoro.cpp
parent568f1a19b16f7febfd6ff3963f28840399aec8b5 (diff)
replace part of boost::fibers::* to std::*
Diffstat (limited to 'indra/llcommon/lleventcoro.cpp')
-rw-r--r--indra/llcommon/lleventcoro.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/lleventcoro.cpp b/indra/llcommon/lleventcoro.cpp
index 067b5e6fbc..97a7ad04ad 100644
--- a/indra/llcommon/lleventcoro.cpp
+++ b/indra/llcommon/lleventcoro.cpp
@@ -285,7 +285,7 @@ LLSD llcoro::postAndSuspendWithTimeout(const LLSD& event,
// declare the future
LLCoros::Future<LLSD> future = LLCoros::getFuture(promise);
// wait for specified timeout
- boost::fibers::future_status status;
+ std::future_status status;
{
LLCoros::TempStatus st(STRINGIZE("waiting for " << replyPump.getPump().getName()
<< " for " << timeout << "s"));
@@ -296,7 +296,7 @@ LLSD llcoro::postAndSuspendWithTimeout(const LLSD& event,
status = future.wait_for(std::chrono::milliseconds(long(timeout * 1000)));
}
// if the future is NOT yet ready, return timeoutResult instead
- if (status == boost::fibers::future_status::timeout)
+ if (status == std::future_status::timeout)
{
LL_DEBUGS("lleventcoro") << "postAndSuspendWithTimeout(): coroutine " << listenerName
<< " timed out after " << timeout << " seconds,"
@@ -305,7 +305,7 @@ LLSD llcoro::postAndSuspendWithTimeout(const LLSD& event,
}
else
{
- llassert_always(status == boost::fibers::future_status::ready);
+ llassert_always(status == std::future_status::ready);
// future is now ready, no more waiting
LLSD value(future.get());