summaryrefslogtreecommitdiff
path: root/indra/llcommon/llthreadsafequeue.h
diff options
context:
space:
mode:
authorAndrew Meadows <andrew.l.meadows@gmail.com>2024-10-03 12:08:26 -0700
committerAndrew Meadows <andrew.l.meadows@gmail.com>2024-10-03 12:08:26 -0700
commitea650ac073aeb03ab99b88c41f51ce636ce37982 (patch)
treeef00935573ba1cab6955b9d204e35209062f84e9 /indra/llcommon/llthreadsafequeue.h
parent0617923ae7f450ece7288f8a73446c45a8ed32db (diff)
fix GameControl save settings, fix linux build
Diffstat (limited to 'indra/llcommon/llthreadsafequeue.h')
-rw-r--r--indra/llcommon/llthreadsafequeue.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llcommon/llthreadsafequeue.h b/indra/llcommon/llthreadsafequeue.h
index 034e3f7897..7a5eb5b33d 100644
--- a/indra/llcommon/llthreadsafequeue.h
+++ b/indra/llcommon/llthreadsafequeue.h
@@ -452,7 +452,10 @@ ElementT LLThreadSafeQueue<ElementT, QueueT>::pop(void)
// so we can finish draining the queue.
pop_result popped = pop_(lock1, value);
if (popped == POPPED)
- return std::move(value);
+ // don't use std::move when returning local value because
+ // it prevents the compiler from optimizing with copy elision
+ //return std::move(value);
+ return value;
// Once the queue is DONE, there will never be any more coming.
if (popped == DONE)