示例#1
0
文件: files.go 项目: sqp/godock
// AccessUnlock releases the access to config files.
//
func AccessUnlock(log cdtype.Logger) {
	log.Debug("files.Access", "Unlock")
	access.Unlock()
}
示例#2
0
文件: files.go 项目: 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()
}