-
public class SyncSynchronization utility definitions.
-
-
Method Summary
Modifier and Type Method Description static ReadWriteLocknewReadWriteLock()Construct a new read-write lock. static booleanisMainThread()Test whether current thread is main (UI) thread. static voidcheckNonMainThread()Fail if current thread is main (UI) thread. static voidcheckMainThread()Fail if current thread is not main (UI) thread. -
-
Method Detail
-
newReadWriteLock
static ReadWriteLock newReadWriteLock()
Construct a new read-write lock.
-
isMainThread
static boolean isMainThread()
Test whether current thread is main (UI) thread.
-
checkNonMainThread
static void checkNonMainThread()
Fail if current thread is main (UI) thread.
-
checkMainThread
static void checkMainThread()
Fail if current thread is not main (UI) thread.
-
-
-
-