1
This commit is contained in:
parent
41674f892a
commit
b8ccbdd770
@ -30,11 +30,14 @@ func (this *log) unInit() {
|
||||
|
||||
func (this *log) saveToDb() {
|
||||
for true {
|
||||
this.logQueue.Fetch()
|
||||
if this.logQueue.IsEmpty() {
|
||||
this.loopCond.L.Lock()
|
||||
this.loopCond.Wait()
|
||||
this.loopCond.L.Unlock()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (this *log) AddAsyncLog(accountId string, logType string, subLogType string, currTime int64,
|
||||
params map[string]string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user