Class SyncClass


  • public final class SyncClass
    extends Object
    Locker of class.
    • Constructor Detail

      • SyncClass

        public SyncClass​(MetaClassID newMetaClassID)
        Constructor
        Parameters:
        newMetaClassID - ID of the class locker.
    • Method Detail

      • lock

        public void lock()
        Lock class.
      • getNumThreadsWaiting

        public int getNumThreadsWaiting()
        Get number of threads waiting.
        Returns:
        number of threads waiting
      • unlock

        public void unlock()
        Unlock class.
      • getMetaClassID

        public MetaClassID getMetaClassID()
        Get class id of locker
        Returns:
        ID of the class