mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
pthread_cond_timedwait used wall time so it might introduce racing, pthread_cond_timedwait_monotonic_np is Android specific but it is being deprecated. And now Android support pthread_condattr_setclock so use it to wait on CLOCK_MONOTONIC instead. Bug: 64623895 Test: USB switch function works, charging/MTP/PTP Change-Id: I136533ff90ef1be2b042ef1e0829643f2f7aa968