OSDN Git Service

Add comment about MenuExecutor assumptions in BatchService
authorBobby Georgescu <georgescu@google.com>
Tue, 29 Jan 2013 18:58:34 +0000 (10:58 -0800)
committerBobby Georgescu <georgescu@google.com>
Tue, 29 Jan 2013 18:58:34 +0000 (10:58 -0800)
Bug: 7998915
Change-Id: Ibb73585bf2f81b4a1daadfeb814828ec7b55441d

src/com/android/gallery3d/app/BatchService.java

index 98a1d82..564001d 100644 (file)
@@ -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;
     }