DoubleLock

mill.client.lock.DoubleLock
class DoubleLock(lock1: Lock, lock2: Lock) extends Lock

Combines two locks into one, making sure we only lock if we can get both locks.

Attributes

Source
DoubleLock.scala
Graph
Supertypes
class Lock
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def close(): Unit

Attributes

Definition Classes
AutoCloseable
Source
DoubleLock.scala
override def delete(): Unit

Attributes

Definition Classes
Source
DoubleLock.scala
override def lock(): Locked

Attributes

Definition Classes
Source
DoubleLock.scala
override def probe(): Boolean

Returns true if the lock is available for taking.

Returns true if the lock is available for taking.

Attributes

Definition Classes
Source
DoubleLock.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
DoubleLock.scala
override def tryLock(): TryLocked

Attributes

Definition Classes
Source
DoubleLock.scala

Inherited methods

def await(): Unit

Attributes

Inherited from:
Lock
Source
Lock.scala