|
|
@ -33,7 +33,7 @@ var (
|
|
|
|
LvPanic: "PANIC",
|
|
|
|
LvPanic: "PANIC",
|
|
|
|
LvFatal: "FATAL",
|
|
|
|
LvFatal: "FATAL",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stacks starmap.StarStack
|
|
|
|
stacks *starmap.StarStack
|
|
|
|
stackStarted bool = false
|
|
|
|
stackStarted bool = false
|
|
|
|
stackStopChan chan int
|
|
|
|
stackStopChan chan int
|
|
|
|
stackMu sync.Mutex
|
|
|
|
stackMu sync.Mutex
|
|
|
@ -165,7 +165,7 @@ func StartStacks() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
poped := stacks.MustPop()
|
|
|
|
poped := stacks.MustPop()
|
|
|
|
if poped == nil {
|
|
|
|
if poped == nil {
|
|
|
|
time.Sleep(time.Millisecond * 10)
|
|
|
|
time.Sleep(time.Microsecond * 500)
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val := poped.(logTransfer)
|
|
|
|
val := poped.(logTransfer)
|
|
|
@ -185,4 +185,4 @@ func StopStacks() {
|
|
|
|
|
|
|
|
|
|
|
|
func Stop() {
|
|
|
|
func Stop() {
|
|
|
|
StopStacks()
|
|
|
|
StopStacks()
|
|
|
|
}
|
|
|
|
}
|
|
|
|