aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbsupport/thread_pool.c
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-10-08 17:25:26 -0500
committerChristian Biesinger <cbiesinger@google.com>2019-10-08 17:36:15 -0500
commitd13d16c4d8e976ebd00353e04ca8a761b8850a11 (patch)
treec5934e66287c895b75dddf3a29945797f1160193 /gdb/gdbsupport/thread_pool.c
parent52300df201ed1a35eb15b2bc5eb441a1b7eec393 (diff)
downloadbinutils-users/cbiesinger/threadpool.zip
binutils-users/cbiesinger/threadpool.tar.gz
binutils-users/cbiesinger/threadpool.tar.bz2
Diffstat (limited to 'gdb/gdbsupport/thread_pool.c')
-rw-r--r--gdb/gdbsupport/thread_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbsupport/thread_pool.c b/gdb/gdbsupport/thread_pool.c
index 03fef95..a78edea 100644
--- a/gdb/gdbsupport/thread_pool.c
+++ b/gdb/gdbsupport/thread_pool.c
@@ -40,7 +40,7 @@ thread_pool::thread_function ()
break;
if (m_tasks.empty ())
continue;
- t = m_tasks.front();
+ t = std::move (m_tasks.front());
m_tasks.pop();
}
t ();