diff options
author | Monty Brandenberg <monty@lindenlab.com> | 2012-06-01 18:18:53 -0400 |
---|---|---|
committer | Monty Brandenberg <monty@lindenlab.com> | 2012-06-01 18:18:53 -0400 |
commit | 640798bb9951bc512bcbcffbe136d42372c99322 (patch) | |
tree | 7872aaf159e8b7cd96556766e6e3500d15841401 /indra/llcorehttp/_httpoprequest.h | |
parent | 7b9da4eeda7505162f37cbfa52591f7adff032e7 (diff) |
Platform fixups: typedef for priority_queue, more specific comparator functor.
Diffstat (limited to 'indra/llcorehttp/_httpoprequest.h')
-rw-r--r-- | indra/llcorehttp/_httpoprequest.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llcorehttp/_httpoprequest.h b/indra/llcorehttp/_httpoprequest.h index e973f6ad26..0cad4e8459 100644 --- a/indra/llcorehttp/_httpoprequest.h +++ b/indra/llcorehttp/_httpoprequest.h @@ -131,6 +131,19 @@ public: }; // end class HttpOpRequest +/// HttpOpRequestCompare isn't an operation but a uniform comparison +/// functor for STL containers that order by priority. Mainly +/// used for the ready queue container but defined here. +class HttpOpRequestCompare +{ +public: + bool operator()(const HttpOpRequest * lhs, const HttpOpRequest * rhs) + { + return lhs->mReqPriority > rhs->mReqPriority; + } +}; // end class HttpOpRequestCompare + + } // end namespace LLCore #endif // _LLCORE_HTTP_OPREQUEST_H_ |