objectMakeLock function

BasicLock objectMakeLock(
  1. Object monitor
)

Returns the associate basic lock

Implementation

BasicLock objectMakeLock(Object monitor) {
  // get or create Lock object
  var synchronizedLock = cacheLocks[monitor];
  if (synchronizedLock == null) {
    synchronizedLock = BasicLock();
    cacheLocks[monitor] = synchronizedLock;
  }
  return synchronizedLock;
}