mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

These are needed for the `waitUninterruptibly` handling, which is really just waiting for a condition to become true on another thread with a timeout, as well as Clock and interrupt handling. We already have ConditionVariable that serves this purpose, which has methods with a timeout and with interrupt handling. Adding another version of the call with both timeout and interrupt handling allows to replace the EPII manual code. The ConditionVariable methods were also missing the clock calls to signal a wait operation. PiperOrigin-RevId: 743214709