lock

Public compatibility alias for fileLock.

Low-level integrations may use this lock to group custom native access, but must do so with synchronized(file.lock). Do not call ReentrantLock.lock or ReentrantLock.unlock directly; those APIs do not coordinate with the monitor used by synchronized.