Package 

Class Sync


  • 
    public class Sync
    
                        

    Synchronization utility definitions.

    • Method Summary

      Modifier and Type Method Description
      static ReadWriteLock newReadWriteLock() Construct a new read-write lock.
      static boolean isMainThread() Test whether current thread is main (UI) thread.
      static void checkNonMainThread() Fail if current thread is main (UI) thread.
      static void checkMainThread() Fail if current thread is not main (UI) thread.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait