+10
−0
+25
−72
media/utils/TimerThread-test.cpp
0 → 100644
+146
−0
media/utils/TimerThread.cpp
0 → 100644
+76
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This replaces the usage of Thread, Mutex, Condition and KeyedVector with their std:: counterparts. We're also extracting the time thread from TimeCheck and adding a unit test. The logic in TimerThread now is easier to follow and it is more evident that tasks would never be executed before their deadline arrived. In the original code, this wasn't obvious. Test: atest libmediautils_test Bug: 188748333 Change-Id: Iac887e7d6e6758c0a0e5c56695e9671082e64b09