diff options
author | 2014-05-27 16:06:08 +0900 | |
---|---|---|
committer | 2014-05-27 16:06:08 +0900 | |
commit | 733a9c09a90c537e0ec00d3d38a1e124662750bb (patch) | |
tree | 68799b802b7920cbc6b8d3c5e792174ecb63d934 /java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java | |
parent | 01748cde4e692c970617e4478368f83b710a86b6 (diff) | |
download | latinime-733a9c09a90c537e0ec00d3d38a1e124662750bb.tar.gz latinime-733a9c09a90c537e0ec00d3d38a1e124662750bb.tar.xz latinime-733a9c09a90c537e0ec00d3d38a1e124662750bb.zip |
Add thread name for PrioritizedSerialExecutor.
Bug: 15270123
Change-Id: I655ba97f0543476980d0e8461bc1c8a56c9f954b
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; |