Waiter

Interface of android.os, in MessageQueue · MessageQueue.java · Android's reference

public interface Waiter

How a queue's thread waits, and how another thread wakes it.

Methods

public abstract void await(MessageQueue queue, long timeout) throws InterruptedException source

Waits up to timeout milliseconds (forever when negative), until woken. Called holding the queue.

public abstract void wake(MessageQueue queue) source

Wakes the waiting thread. Called holding the queue.


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.