Packages

final class ReentrantLock extends AnyRef

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReentrantLock
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hasQueuedFiber(fiberId: FiberId): UIO[Boolean]

    Queries whether the given fiber is waiting to acquire this lock.

  11. lazy val hasQueuedFibers: UIO[Boolean]

    Queries whether any fibers are waiting to acquire this lock.

  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. lazy val holdCount: UIO[Int]

    Queries the number of holds on this lock by the current fiber.

  14. def isFair: Boolean

    Returns true if this lock has fairness set to true.

  15. lazy val isHeldByCurrentFiber: UIO[Boolean]

    Queries if this lock is held by the current fiber.

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. lazy val lock: UIO[Unit]

    Acquires the lock.

    Acquires the lock.

    Acquires the lock if it is not held by another fiber and returns immediately, setting the lock hold count to one.

    If the current fiber already holds the lock then the hold count is incremented by one and the method returns immediately.

    If the lock is held by another fiber then the current fiber is put to sleep until the lock has been acquired, at which time the lock hold count is set to one.

  18. lazy val locked: UIO[Boolean]

    Queries if this lock is held by any fiber.

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. lazy val owner: UIO[Option[FiberId]]

    Returns the fiber ID of the fiber that currently owns this lock, if owned, or None otherwise.

  23. lazy val queueLength: UIO[Int]

    Returns the number of fibers waiting to acquire this lock.

  24. lazy val queuedFibers: UIO[List[FiberId]]

    Returns the fiber IDs of the fibers that are waiting to acquire this lock.

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. lazy val tryLock: UIO[Boolean]

    Acquires the lock only if it is not held by another fiber at the time of invocation.

  28. lazy val unlock: UIO[Unit]

    Attempts to release this lock.

    Attempts to release this lock.

    If the current fiber is the holder of this lock then the hold count is decremented. If the hold count is now zero then the lock is released. If the current thread is not the holder of this lock then nothing happens.

  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. lazy val withLock: URIO[Scope, Int]

    Acquires and releases the lock as a managed effect.

Inherited from AnyRef

Inherited from Any

Ungrouped