Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 73ba9201 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

InputTracer: Use explicit thread wake conditions

This is a small cleanup to use the stop_predicate for the
std::condition_variable::wait() method to make the waking conditions
explicit and more readable.

Also, move the events buffers out of the thread loop to avoid the need
to reallocate it for each iteration.

Bug: 210460522
Test: atest inputflinger_tests
Change-Id: Ic56a6f2cf42fe2eee752e1d34fd347a3f5421991
parent a2d3cf16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment