1
This commit is contained in:
parent
41674f892a
commit
b8ccbdd770
@ -30,9 +30,12 @@ func (this *log) unInit() {
|
|||||||
|
|
||||||
func (this *log) saveToDb() {
|
func (this *log) saveToDb() {
|
||||||
for true {
|
for true {
|
||||||
this.loopCond.L.Lock()
|
this.logQueue.Fetch()
|
||||||
this.loopCond.Wait()
|
if this.logQueue.IsEmpty() {
|
||||||
this.loopCond.L.Unlock()
|
this.loopCond.L.Lock()
|
||||||
|
this.loopCond.Wait()
|
||||||
|
this.loopCond.L.Unlock()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user