commit | 73ba92019b8508cc7551a1835237b34f7018bd5c | [log] [tgz] |
---|---|---|
author | Prabir Pradhan <prabirmsp@google.com> | Mon Feb 05 22:55:46 2024 +0000 |
committer | Prabir Pradhan <prabirmsp@google.com> | Tue Feb 06 22:54:00 2024 +0000 |
tree | 5aee81bf3bd2ac1b45c5fc3b59966d3dfc87240d | |
parent | a2d3cf16815babdcdd528a0c6733b0b0c121323c [diff] |
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