mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve kernel stability by eliminating some data races https://github.com/siyuan-note/siyuan/issues/9842
This commit is contained in:
parent
bea32e96d5
commit
26e3f6807b
2 changed files with 10 additions and 6 deletions
|
|
@ -174,8 +174,12 @@ func IsBooted() bool {
|
|||
return 100 <= bootProgress.Load()
|
||||
}
|
||||
|
||||
func GetBootProgressDetails() (int32, string) {
|
||||
return bootProgress.Load(), bootDetails
|
||||
func GetBootProgressDetails() (progress int32, details string) {
|
||||
progress = bootProgress.Load()
|
||||
bootDetailsLock.Lock()
|
||||
details = bootDetails
|
||||
bootDetailsLock.Unlock()
|
||||
return
|
||||
}
|
||||
|
||||
func GetBootProgress() int32 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue