public class LockFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LockFactory.ImplType |
| Constructor and Description |
|---|
LockFactory() |
| Modifier and Type | Method and Description |
|---|---|
static RecursiveLock |
createRecursiveLock()
default is ImplType.Int01, unfair'ish (fastest w/ least deviation)
|
static RecursiveLock |
createRecursiveLock(LockFactory.ImplType t,
boolean fair) |
static RecursiveThreadGroupLock |
createRecursiveThreadGroupLock()
default is ImplType.Int02ThreadGroup, unfair'ish (fastest w/ least deviation)
|
public static RecursiveLock createRecursiveLock()
public static RecursiveThreadGroupLock createRecursiveThreadGroupLock()
public static RecursiveLock createRecursiveLock(LockFactory.ImplType t, boolean fair)