diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2021-10-01 16:05:23 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2021-10-01 16:05:23 -0400 |
commit | 7c9aeed97d4ba3641971b9a1a92d334ec0adbb09 (patch) | |
tree | c961b438e6daf905362121193197b1c17dd3d3db /indra/llui/lluicolor.cpp | |
parent | c40b8310b00f1d620a2f5a94f2514c8bf3531373 (diff) |
SL-16024: Enhance LLThreadSafeQueue for use with WorkQueue.
First, parameterize LLThreadSafeQueue's queue type. This allows us to
substitute (e.g.) a std::priority_queue for a particular instance.
Use std::queue for the default queue type, changing the operations invoked on
the queue type from std::deque methods to std::queue methods.
Rename published methods from (e.g.) pushFront() and popBack() to simple
push() and pop(), retaining legacy names as aliases. Not only are the overt
Front and Back unnecessary; they're the opposite of how std::queue uses
std::deque or std::list, so they only confuse the reader.
Break out tryPushUntil() method. We already use that logic internally to
tryPushFor(), so it's just as easy to publish it as its own entry point.
Add tryPopFor() and tryPopUntil() to allow limiting the time we'll wait for a
queue item to become available.
Diffstat (limited to 'indra/llui/lluicolor.cpp')
0 files changed, 0 insertions, 0 deletions