msg: Remove pessimizing move

Do not std::move the result of a function returning a value.

(Once could reasonably std::move the result of a function returning an
lvalue reference, but *not* that of one returning a value.)

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
This commit is contained in:
Adam C. Emerson 2017-04-10 13:02:43 -04:00
parent 7d344d137a
commit 568d60631c

View File

@ -526,7 +526,7 @@ RDMAStack::~RDMAStack()
void RDMAStack::spawn_worker(unsigned i, std::function<void ()> &&func)
{
threads.resize(i+1);
threads[i] = std::move(std::thread(func));
threads[i] = std::thread(func);
}
void RDMAStack::join_worker(unsigned i)