Package sun.misc

Class Lock

java.lang.Object
sun.misc.Lock

public class Lock
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    Lock()  
  • Method Summary

    Modifier and Type Method Description
    void lock()  
    void unlock()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Lock

      public Lock()
  • Method Details

    • lock

      public final void lock() throws java.lang.InterruptedException
      Throws:
      java.lang.InterruptedException
    • unlock

      public final void unlock()