ReLock

rescala.locking.ReLock
final class ReLock[InterTurn]()

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def acquired(key: Key[InterTurn]): Key[InterTurn]
def getOwner: Key[InterTurn]
def isOwner(key: Key[InterTurn]): Boolean

returns true if key owns the write lock

returns true if key owns the write lock

Attributes

def share(key: Key[InterTurn]): Unit
def transfer(target: Key[InterTurn], oldOwner: Key[InterTurn], transferWriteSet: Boolean): Unit

transfers the lock from the turn to the target.

transfers the lock from the turn to the target.

Attributes

def tryLock(key: Key[InterTurn], write: Boolean): Key[InterTurn]

locks this if it is free, returns the current owner (which is key, if locking succeeded) does not check for shared access.

locks this if it is free, returns the current owner (which is key, if locking succeeded) does not check for shared access.

Attributes