diff options
author | Brad Linden <46733234+brad-linden@users.noreply.github.com> | 2024-05-23 13:02:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 13:02:08 -0700 |
commit | 0cc832c38a34013a9eebf8d3caad2921bead265d (patch) | |
tree | 8d916206343d075fc85e90e83ec9dabe8b01376d /indra/llcorehttp/_httpreplyqueue.cpp | |
parent | 03c4458bdcc6821a3047f93b729d412e274ab9af (diff) | |
parent | 9f6849e081deac1f62ab3010ee0984e17749c9e6 (diff) |
Merge pull request #1528 from secondlife/brad/merge-maint-a-to-dev
merge maint-a (including maint-x) into gltf_development
Diffstat (limited to 'indra/llcorehttp/_httpreplyqueue.cpp')
-rw-r--r-- | indra/llcorehttp/_httpreplyqueue.cpp | 44 |
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); + } + } } |