LightReentrantLock (struct)

Simple, reentrant spin lock, which can be bracketed with a LightLockBracket

LightReentrantLock LightReentrantLock LightReentrantLock

Members

UInt32 lockVariable  
UInt32 lockingThreadIndex  
UInt32 bracketCount  

Methods

  LightReentrantLock ( in LightReentrantLock other )
  LightReentrantLock ()
  acquire ! ()
LightReentrantLock clone ? ()
Boolean locked ? ()
Boolean locked_fetch ! ()
  release ! ()
Boolean tryAcquire ! ()

Methods in detail

LightReentrantLock ( in LightReentrantLock other )

copy constructor


LightReentrantLock ()


LightReentrantLock.acquire! ()


LightReentrantLock LightReentrantLock.clone? ()

clone method


Boolean LightReentrantLock.locked? ()


Boolean LightReentrantLock.locked_fetch! ()

Check if write locked, but forces a memory fetch for more accuracy


LightReentrantLock.release! ()


Boolean LightReentrantLock.tryAcquire! ()