diff options
-rw-r--r-- | gdbsupport/thread-pool.cc | 2 | ||||
-rw-r--r-- | gdbsupport/thread-pool.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdbsupport/thread-pool.cc b/gdbsupport/thread-pool.cc index efd8b79..464e32f 100644 --- a/gdbsupport/thread-pool.cc +++ b/gdbsupport/thread-pool.cc @@ -171,7 +171,7 @@ thread_pool::thread_function () while (true) { - optional<task> t; + optional<task_t> 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 3243346..5e203fd 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<void ()> task; + typedef std::packaged_task<void ()> 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<optional<task>> m_tasks; + std::queue<optional<task_t>> m_tasks; /* A condition variable and mutex that are used for communication between the main thread and the worker threads. */ |