Lock acquires the mutex for a given file path.
(path string)
| 39 | |
| 40 | // Lock acquires the mutex for a given file path. |
| 41 | func (m *FileLockManager) Lock(path string) { |
| 42 | m.getLock(path).Lock() |
| 43 | } |
| 44 | |
| 45 | // Unlock releases the mutex for a given file path. |
| 46 | func (m *FileLockManager) Unlock(path string) { |