mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113
This commit is contained in:
@@ -161,16 +161,6 @@ func Loop() {
|
||||
}
|
||||
}
|
||||
|
||||
func CloseWait() {
|
||||
taskQueueStatus = QueueStatusClosing
|
||||
for {
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
if 1 > len(taskQueue) {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func clearQueue() {
|
||||
queueLock.Lock()
|
||||
defer queueLock.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user