diff options
author | Bobby Georgescu <georgescu@google.com> | 2013-01-29 10:58:34 -0800 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2013-01-29 10:58:34 -0800 |
commit | b380f17426f419e3663da80985dc62f544d47048 (patch) | |
tree | d4da3b154960318e566d57e202a8a1940e91071c /src/com/android/gallery3d/app/BatchService.java | |
parent | d0f8807ca66b006e4049e32ad187a808c42e1f00 (diff) | |
download | android_packages_apps_Gallery2-b380f17426f419e3663da80985dc62f544d47048.tar.gz android_packages_apps_Gallery2-b380f17426f419e3663da80985dc62f544d47048.tar.bz2 android_packages_apps_Gallery2-b380f17426f419e3663da80985dc62f544d47048.zip |
Add comment about MenuExecutor assumptions in BatchService
Bug: 7998915
Change-Id: Ibb73585bf2f81b4a1daadfeb814828ec7b55441d
Diffstat (limited to 'src/com/android/gallery3d/app/BatchService.java')
-rw-r--r-- | src/com/android/gallery3d/app/BatchService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/BatchService.java b/src/com/android/gallery3d/app/BatchService.java index 98a1d8215..564001d5b 100644 --- a/src/com/android/gallery3d/app/BatchService.java +++ b/src/com/android/gallery3d/app/BatchService.java @@ -39,6 +39,9 @@ public class BatchService extends Service { return mBinder; } + // The threadpool returned by getThreadPool must have only 1 thread + // running at a time, as MenuExecutor (atrociously) depends on this + // guarantee for synchronization. public ThreadPool getThreadPool() { return mThreadPool; } |