ConcurrentDeque::push takes const reference

TODO: adding a void push(T&& value) with same body
master
dmatetelki 9 years ago
parent 80b1ad5773
commit 1dcb6e696d

@ -33,7 +33,7 @@ public:
TRACE; TRACE;
} }
void push(const T value) void push(const T& value)
{ {
TRACE; TRACE;
std::unique_lock<std::mutex> lock(m_mutex); std::unique_lock<std::mutex> lock(m_mutex);

Loading…
Cancel
Save