diff --git a/map/gps_track.cpp b/map/gps_track.cpp index 2dd6bd5dc3..6dd60ee290 100644 --- a/map/gps_track.cpp +++ b/map/gps_track.cpp @@ -127,7 +127,7 @@ void GpsTrack::ScheduleTask() if (m_thread.get_id() == thread::id()) { - m_thread = thread([this]() + m_thread = threads::SimpleThread([this]() { unique_lock ul(m_threadGuard); while (true) diff --git a/map/gps_track.hpp b/map/gps_track.hpp index 1ad2c38d45..b3e87c6853 100644 --- a/map/gps_track.hpp +++ b/map/gps_track.hpp @@ -4,6 +4,8 @@ #include "map/gps_track_filter.hpp" #include "map/gps_track_storage.hpp" +#include "base/thread.hpp" + #include "std/condition_variable.hpp" #include "std/mutex.hpp" #include "std/thread.hpp" @@ -87,7 +89,7 @@ private: unique_ptr m_filter; // used in the worker thread mutex m_threadGuard; - thread m_thread; + threads::SimpleThread m_thread; bool m_threadExit; // need exit thread bool m_threadWakeup; // need wakeup thread condition_variable m_cv;