diff options
author | Alexander Kutsan <alexkutsan@ya.ru> | 2020-06-16 23:54:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 16:54:20 -0400 |
commit | 665d4d32bcd618776d924f9f985e76dec74edd3a (patch) | |
tree | 75fd546bcfcd73b16856bd21d487842149341e3f | |
parent | ea1b0f9b771be7ef13a3c38fafdc0a23828743ce (diff) | |
download | sdl_core-665d4d32bcd618776d924f9f985e76dec74edd3a.tar.gz |
Fix deadlock in timer.cc (#3379)fix/sdl_build_problems
SDLCORE-458
Fix deadlock in timer.cc call lock two times for Lock,
second lock was removed, cause using of it hadn't any benefits.
Regarding of Helgrind report.
Co-authored-by: Maksym Shvaiko <MShvaiko@luxoft.com>
-rw-r--r-- | src/components/utils/src/timer.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/components/utils/src/timer.cc b/src/components/utils/src/timer.cc index 8e854654de..582458e5c4 100644 --- a/src/components/utils/src/timer.cc +++ b/src/components/utils/src/timer.cc @@ -222,6 +222,5 @@ void timer::Timer::TimerDelegate::threadMain() { } void timer::Timer::TimerDelegate::exitThreadMain() { - sync_primitives::AutoLock auto_lock(state_lock_ref_); state_condition_.NotifyOne(); } |