(name string)
| 42 | } |
| 43 | |
| 44 | func (l *Locker) Unlock(name string) { |
| 45 | filename := l.filename(name) |
| 46 | |
| 47 | locker, ok := l.locks[filename] |
| 48 | if !ok { |
| 49 | return |
| 50 | } |
| 51 | |
| 52 | delete(l.locks, filename) |
| 53 | |
| 54 | _ = locker.Close() |
| 55 | } |
| 56 | |
| 57 | func (l *Locker) UnlockAll() { |
| 58 | for key, locker := range l.locks { |