OSDN Git Service

Fix 6208468 21 ANR(s) in: com.google.android.gallery3d on crespo during monkey runs...
authorRay Chen <raychen@google.com>
Fri, 20 Apr 2012 02:58:20 +0000 (10:58 +0800)
committerRay Chen <raychen@google.com>
Fri, 20 Apr 2012 03:43:12 +0000 (11:43 +0800)
commitf9a5a456aa75949c1065656ba01ab2ca350de7e9
treeda862afa49b68495b1b6f9e8b498c25bb17b16db
parent0f4f00b1c311527f31afa2d7a481b46675aeb14e
Fix 6208468 21 ANR(s) in: com.google.android.gallery3d on crespo during monkey runs for JRM80
b:6208468

Both getDataManager and getImageCacheService use the same lock but the latter method is blocked on
RandomAccessFile's open syscall. The lock should be separated because they're independent and
getDataManager is very frequently used too.

Change-Id: I4d44cfc949f45a31c7200c8327115bc4b7fde60f
src/com/android/gallery3d/app/GalleryAppImpl.java