Class/Object

zio.concurrent

ReentrantLock

Related Docs: object ReentrantLock | package concurrent

Permalink

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. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hasQueuedFiber(fiberId: FiberId): UIO[Boolean]

    Permalink

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

  11. lazy val hasQueuedFibers: UIO[Boolean]

    Permalink

    Queries whether any fibers are waiting to acquire this lock.

  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. lazy val holdCount: UIO[Int]

    Permalink

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

  14. def isFair: Boolean

    Permalink

    Returns true if this lock has fairness set to true.

  15. lazy val isHeldByCurrentFiber: UIO[Boolean]

    Permalink

    Queries if this lock is held by the current fiber.

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. lazy val lock: UIO[Unit]

    Permalink

    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]

    Permalink

    Queries if this lock is held by any fiber.

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. lazy val owner: UIO[Option[FiberId]]

    Permalink

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

  23. lazy val queueLength: UIO[Int]

    Permalink

    Returns the number of fibers waiting to acquire this lock.

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

    Permalink

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

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. lazy val tryLock: UIO[Boolean]

    Permalink

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

  28. lazy val unlock: UIO[Unit]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. lazy val withLock: URIO[Scope, Int]

    Permalink

    Acquires and releases the lock as a managed effect.

Inherited from AnyRef

Inherited from Any

Ungrouped