diff options
author | 2014-05-27 07:24:25 +0000 | |
---|---|---|
committer | 2014-05-27 07:24:26 +0000 | |
commit | 26628eeb4b4a2ffdd6b1912e4bcefc83ac802ceb (patch) | |
tree | 0684bb55ed6e8fe640e54d309d9fe2b38f243e3d /java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java | |
parent | ced67885186d9e4c401bd4a07692905d4dc691be (diff) | |
parent | 733a9c09a90c537e0ec00d3d38a1e124662750bb (diff) | |
download | latinime-26628eeb4b4a2ffdd6b1912e4bcefc83ac802ceb.tar.gz latinime-26628eeb4b4a2ffdd6b1912e4bcefc83ac802ceb.tar.xz latinime-26628eeb4b4a2ffdd6b1912e4bcefc83ac802ceb.zip |
Merge "Add thread name for PrioritizedSerialExecutor."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java b/java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java index 7b678e175..c08697c4b 100644 --- a/java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java +++ b/java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java @@ -28,14 +28,14 @@ public class ExecutorUtils { new ConcurrentHashMap<>(); /** - * Gets the executor for the given dictionary name. + * Gets the executor for the given id. */ - public static PrioritizedSerialExecutor getExecutor(final String dictName) { - PrioritizedSerialExecutor executor = sExecutorMap.get(dictName); + public static PrioritizedSerialExecutor getExecutor(final String id) { + PrioritizedSerialExecutor executor = sExecutorMap.get(id); if (executor == null) { synchronized(sExecutorMap) { - executor = new PrioritizedSerialExecutor(); - sExecutorMap.put(dictName, executor); + executor = new PrioritizedSerialExecutor(id); + sExecutorMap.put(id, executor); } } return executor; |