Exemplo n.º 1
0
Arquivo: files.go Projeto: sqp/godock
// AccessUnlock releases the access to config files.
//
func AccessUnlock(log cdtype.Logger) {
	log.Debug("files.Access", "Unlock")
	access.Unlock()
}
Exemplo n.º 2
0
Arquivo: files.go Projeto: 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()
}