fm.liveswitch.ManagedLock Class Reference

A managed lock. More...

Public Member Functions

void lock ()
 Acquires an exclusive lock. More...
 
void unlock ()
 Releases an exclusive lock. More...
 

Protected Attributes

Lock _lock = new ReentrantLock()
 

Detailed Description

A managed lock.

Member Function Documentation

◆ lock()

void fm.liveswitch.ManagedLock.lock ( )

Acquires an exclusive lock.

◆ unlock()

void fm.liveswitch.ManagedLock.unlock ( )

Releases an exclusive lock.

Member Data Documentation

◆ _lock

Lock fm.liveswitch.ManagedLock._lock = new ReentrantLock()
protected