🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113

This commit is contained in:
Liang Ding 2023-01-24 21:05:32 +08:00
parent 6d100464dd
commit e8fe3a77b3
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 23 additions and 12 deletions

View file

@ -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()