Lock constructor
Lock({
- bool reentrant = false,
Creates a Lock object.
if reentrant, it uses Zone to allow inner synchronized calls.
Implementation
factory Lock({bool reentrant = false}) {
if (reentrant) {
return ReentrantLock();
} else {
return BasicLock();
}
}