summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/_httpreplyqueue.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-05-15 16:35:49 +0300
committerGitHub <noreply@github.com>2024-05-15 16:35:49 +0300
commite49dcb8d0c9f539997effb640e350d9d0689aae6 (patch)
tree1bf99eaccce6de17c62f13c6595f7f497548dc5c /indra/llcorehttp/_httpreplyqueue.cpp
parent531cd34f670170ade57f8813fe48012b61a1d3c2 (diff)
parent5f8a7374b9f18e0112d6749a9c845bd077a81acb (diff)
Merge pull request #1476 from secondlife/marchcat/x-b-merge
Maint X -> Maint B merge
Diffstat (limited to 'indra/llcorehttp/_httpreplyqueue.cpp')
-rw-r--r--indra/llcorehttp/_httpreplyqueue.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/indra/llcorehttp/_httpreplyqueue.cpp b/indra/llcorehttp/_httpreplyqueue.cpp
index 229bfdbe07..6124bb6186 100644
--- a/indra/llcorehttp/_httpreplyqueue.cpp
+++ b/indra/llcorehttp/_httpreplyqueue.cpp
@@ -51,46 +51,46 @@ HttpReplyQueue::~HttpReplyQueue()
void HttpReplyQueue::addOp(const HttpReplyQueue::opPtr_t &op)
{
- {
- HttpScopedLock lock(mQueueMutex);
+ {
+ HttpScopedLock lock(mQueueMutex);
- mQueue.push_back(op);
- }
+ mQueue.push_back(op);
+ }
}
HttpReplyQueue::opPtr_t HttpReplyQueue::fetchOp()
{
- HttpOperation::ptr_t result;
+ HttpOperation::ptr_t result;
- {
- HttpScopedLock lock(mQueueMutex);
+ {
+ HttpScopedLock lock(mQueueMutex);
- if (mQueue.empty())
+ if (mQueue.empty())
return opPtr_t();
- result = mQueue.front();
- mQueue.erase(mQueue.begin());
- }
+ result = mQueue.front();
+ mQueue.erase(mQueue.begin());
+ }
- // Caller also acquires the reference count
- return result;
+ // Caller also acquires the reference count
+ return result;
}
void HttpReplyQueue::fetchAll(OpContainer & ops)
{
- // Not valid putting something back on the queue...
- llassert_always(ops.empty());
+ // Not valid putting something back on the queue...
+ llassert_always(ops.empty());
- {
- HttpScopedLock lock(mQueueMutex);
+ {
+ HttpScopedLock lock(mQueueMutex);
- if (! mQueue.empty())
- {
- mQueue.swap(ops);
- }
- }
+ if (! mQueue.empty())
+ {
+ mQueue.swap(ops);
+ }
+ }
}