summaryrefslogtreecommitdiff
path: root/indra/llcommon/llthreadsafequeue.h
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/llthreadsafequeue.h
parent568f1a19b16f7febfd6ff3963f28840399aec8b5 (diff)
replace part of boost::fibers::* to std::*
Diffstat (limited to 'indra/llcommon/llthreadsafequeue.h')
-rw-r--r--indra/llcommon/llthreadsafequeue.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/indra/llcommon/llthreadsafequeue.h b/indra/llcommon/llthreadsafequeue.h
index f396a71e6f..0aa75c9b73 100644
--- a/indra/llcommon/llthreadsafequeue.h
+++ b/indra/llcommon/llthreadsafequeue.h
@@ -28,9 +28,6 @@
#define LL_LLTHREADSAFEQUEUE_H
#include "llcoros.h"
-#include LLCOROS_MUTEX_HEADER
-#include <boost/fiber/timed_mutex.hpp>
-#include LLCOROS_CONDVAR_HEADER
#include "llexception.h"
#include "mutex.h"
#include <chrono>
@@ -182,10 +179,10 @@ protected:
size_t mCapacity;
bool mClosed;
- boost::fibers::timed_mutex mLock;
+ std::timed_mutex mLock;
typedef std::unique_lock<decltype(mLock)> lock_t;
- boost::fibers::condition_variable_any mCapacityCond;
- boost::fibers::condition_variable_any mEmptyCond;
+ std::condition_variable_any mCapacityCond;
+ std::condition_variable_any mEmptyCond;
enum pop_result { EMPTY, DONE, WAITING, POPPED };
// implementation logic, suitable for passing to tryLockUntil()