mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113
This commit is contained in:
parent
6d100464dd
commit
e8fe3a77b3
3 changed files with 23 additions and 12 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue