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