コード例 #1
0
func UnLock() {
	if locked == false {
		return
	}
	if log.IsEnabled() {
		log.Info("df.DBDef", "...Unlocking the singleton world of the DB definition!")
	}
	locked = false
}
コード例 #2
0
func Lock() {
	if locked {
		return
	}
	if log.IsEnabled() {
		log.Info("df.DBDef", "...Locking the singleton world of the DB definition!")
	}
	locked = true
}