diff --git a/gdbsupport/thread-pool.cc b/gdbsupport/thread-pool.cc index efd8b799713..464e32fe79e 100644 --- a/gdbsupport/thread-pool.cc +++ b/gdbsupport/thread-pool.cc @@ -171,7 +171,7 @@ thread_pool::thread_function () while (true) { - optional t; + optional t; { /* We want to hold the lock while examining the task list, but diff --git a/gdbsupport/thread-pool.h b/gdbsupport/thread-pool.h index 3243346771f..5e203fd896c 100644 --- a/gdbsupport/thread-pool.h +++ b/gdbsupport/thread-pool.h @@ -99,13 +99,13 @@ private: size_t m_thread_count = 0; /* A convenience typedef for the type of a task. */ - typedef std::packaged_task task; + typedef std::packaged_task task_t; /* The tasks that have not been processed yet. An optional is used to represent a task. If the optional is empty, then this means that the receiving thread should terminate. If the optional is non-empty, then it is an actual task to evaluate. */ - std::queue> m_tasks; + std::queue> m_tasks; /* A condition variable and mutex that are used for communication between the main thread and the worker threads. */