Esempio n. 1
0
File: files.go Progetto: sqp/godock
// AccessUnlock releases the access to config files.
//
func AccessUnlock(log cdtype.Logger) {
	log.Debug("files.Access", "Unlock")
	access.Unlock()
}
Esempio n. 2
0
File: files.go Progetto: sqp/godock
// AccessLock locks and prevents concurrent access to config files.
// Could be improved, but it may be safer to use for now.
//
func AccessLock(log cdtype.Logger) {
	log.Debug("files.Access", "Lock")
	access.Lock()
}