|
YAACC - UPNP Client and Server
|
Tells background work (the duration preload) that a Browse is being answered, so the background work gives way: a Browse of a big SAF folder needs the processor and the system's Binder threads for itself, and the preload asks the same document provider for every file. More...

Public Member Functions | |
| void | enter () |
| A Browse starts. | |
| void | exit () |
| A Browse ended (also when it failed). | |
| boolean | isBusy () |
| long | awaitIdle (long maxMillis) |
Returns at once when no Browse is active, else waits until the last one ended, at most maxMillis. | |
Tells background work (the duration preload) that a Browse is being answered, so the background work gives way: a Browse of a big SAF folder needs the processor and the system's Binder threads for itself, and the preload asks the same document provider for every file.
Nothing is blocked for good: a waiter gives up after a limit, and a Browse never waits for the background work.
Usage: the Browse calls enter() and, in a finally block, exit(); the background work calls awaitIdle(long) between two files. No Android classes.
| long de.yaacc.util.SafBrowseGate.awaitIdle | ( | long | maxMillis | ) |
Returns at once when no Browse is active, else waits until the last one ended, at most maxMillis.