summaryrefslogtreecommitdiff
path: root/src/components/utils/src/timer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/utils/src/timer.cc')
-rw-r--r--src/components/utils/src/timer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/utils/src/timer.cc b/src/components/utils/src/timer.cc
index 582458e5c4..b58ddf2d66 100644
--- a/src/components/utils/src/timer.cc
+++ b/src/components/utils/src/timer.cc
@@ -134,7 +134,7 @@ void timer::Timer::StartThread() {
DCHECK_OR_RETURN_VOID(thread_);
if (!thread_->IsCurrentThread()) {
- thread_->start();
+ thread_->Start();
}
}
@@ -148,7 +148,7 @@ void timer::Timer::StopThread() {
delegate_->set_finalized_flag(true);
{
sync_primitives::AutoUnlock auto_unlock(state_lock_);
- thread_->join();
+ thread_->Stop(threads::Thread::kThreadStopDelegate);
}
delegate_->set_finalized_flag(false);
}