LMMgr // Concurrency.
This commit is contained in:
parent
852eed07e2
commit
e4275a753e
|
@ -60,7 +60,7 @@ public class LMMgr {
|
|||
}
|
||||
|
||||
public static func loadDataModelsOnAppDelegate() {
|
||||
let globalQueue = DispatchQueue.global(qos: .default)
|
||||
let globalQueue = DispatchQueue(label: "vChewingLM", qos: .unspecified, attributes: .concurrent)
|
||||
var showFinishNotification = false
|
||||
let group = DispatchGroup()
|
||||
group.enter()
|
||||
|
@ -117,7 +117,7 @@ public class LMMgr {
|
|||
}
|
||||
|
||||
public static func loadDataModel(_ mode: Shared.InputMode) {
|
||||
let globalQueue = DispatchQueue.global(qos: .default)
|
||||
let globalQueue = DispatchQueue(label: "vChewingLM_Lazy", qos: .unspecified, attributes: .concurrent)
|
||||
var showFinishNotification = false
|
||||
let group = DispatchGroup()
|
||||
group.enter()
|
||||
|
@ -326,7 +326,7 @@ public class LMMgr {
|
|||
// MARK: UOM
|
||||
|
||||
public static func saveUserOverrideModelData() {
|
||||
let globalQueue = DispatchQueue.global(qos: .default)
|
||||
let globalQueue = DispatchQueue(label: "vChewingLM_UOM", qos: .unspecified, attributes: .concurrent)
|
||||
let group = DispatchGroup()
|
||||
group.enter()
|
||||
globalQueue.async {
|
||||
|
|
Loading…
Reference in New Issue