diff options
| author | Brad Linden <brad@lindenlab.com> | 2024-05-23 11:31:19 -0700 |
|---|---|---|
| committer | Brad Linden <brad@lindenlab.com> | 2024-05-23 11:31:19 -0700 |
| commit | a1f49564d670a2c41bfa25c833bba2564b9b7f48 (patch) | |
| tree | 1d205e51bc37621916a17d459ad83782fe41f975 /indra/llcorehttp/_httpreadyqueue.h | |
| parent | 6af5db09faf5ea33a2d4c47b64e76f42edae178a (diff) | |
| parent | 6377610f6587989c126b00f490dfc8d527a1c2ce (diff) | |
Merge remote-tracking branch 'origin/DRTVWR-600-maint-A' into brad/merge-maint-a-to-dev
Diffstat (limited to 'indra/llcorehttp/_httpreadyqueue.h')
| -rw-r--r-- | indra/llcorehttp/_httpreadyqueue.h | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/indra/llcorehttp/_httpreadyqueue.h b/indra/llcorehttp/_httpreadyqueue.h index 7418988ec1..0bc0723511 100644 --- a/indra/llcorehttp/_httpreadyqueue.h +++ b/indra/llcorehttp/_httpreadyqueue.h @@ -24,8 +24,8 @@ * $/LicenseInfo$ */ -#ifndef _LLCORE_HTTP_READY_QUEUE_H_ -#define _LLCORE_HTTP_READY_QUEUE_H_ +#ifndef _LLCORE_HTTP_READY_QUEUE_H_ +#define _LLCORE_HTTP_READY_QUEUE_H_ #include <queue> @@ -61,64 +61,64 @@ typedef std::deque<HttpOpRequest::ptr_t> HttpReadyQueueBase; #else typedef std::priority_queue<HttpOpRequest::ptr_t, - std::deque<HttpOpRequest::ptr_t>, - LLCore::HttpOpRequestCompare> HttpReadyQueueBase; + std::deque<HttpOpRequest::ptr_t>, + LLCore::HttpOpRequestCompare> HttpReadyQueueBase; #endif // LLCORE_HTTP_READY_QUEUE_IGNORES_PRIORITY class HttpReadyQueue : public HttpReadyQueueBase { public: - HttpReadyQueue() - : HttpReadyQueueBase() - {} - - ~HttpReadyQueue() - {} - + HttpReadyQueue() + : HttpReadyQueueBase() + {} + + ~HttpReadyQueue() + {} + protected: - HttpReadyQueue(const HttpReadyQueue &); // Not defined - void operator=(const HttpReadyQueue &); // Not defined + HttpReadyQueue(const HttpReadyQueue &); // Not defined + void operator=(const HttpReadyQueue &); // Not defined public: #if LLCORE_HTTP_READY_QUEUE_IGNORES_PRIORITY - // Types and methods needed to make a std::deque look - // more like a std::priority_queue, at least for our - // purposes. - typedef HttpReadyQueueBase container_type; - - const_reference top() const - { - return front(); - } + // Types and methods needed to make a std::deque look + // more like a std::priority_queue, at least for our + // purposes. + typedef HttpReadyQueueBase container_type; + + const_reference top() const + { + return front(); + } - void pop() - { - pop_front(); - } + void pop() + { + pop_front(); + } + + void push(const value_type & v) + { + push_back(v); + } - void push(const value_type & v) - { - push_back(v); - } - #endif // LLCORE_HTTP_READY_QUEUE_IGNORES_PRIORITY - - const container_type & get_container() const - { - return *this; - } - container_type & get_container() - { - return *this; - } - + const container_type & get_container() const + { + return *this; + } + + container_type & get_container() + { + return *this; + } + }; // end class HttpReadyQueue } // end namespace LLCore -#endif // _LLCORE_HTTP_READY_QUEUE_H_ +#endif // _LLCORE_HTTP_READY_QUEUE_H_ |
