public static interface ThreadPool.ThreadBorrowable
Modifier and Type | Method and Description |
---|---|
boolean |
canBorrowThread(java.lang.Thread thread)
Caller guarantees that thread is a typical utility 'worker' thread (in contrast to,
for example, the dedicated UI thread, or other threads on which work is dispatched
through a
Handler ). |
boolean canBorrowThread(java.lang.Thread thread)
Handler
). Answer whether we are ok to dispatch here instead of one of
our own worker threads. Caller must additionally assure themselves from their contextual
knowledge that taking advantage of this function will not lead to deadlocks that otherwise
would not occur.