OSDN Git Service

BlobCache: remove the mutex locking
authorJamie Gennis <jgennis@google.com>
Mon, 31 Oct 2011 01:10:41 +0000 (18:10 -0700)
committerJamie Gennis <jgennis@google.com>
Tue, 1 Nov 2011 01:48:31 +0000 (18:48 -0700)
commit93ca6fb91c613c7dfa287571f32c5c44a797961f
treef143c7d8401956b12be9d33c23603351cfa1c6e2
parenta1304a1a8e8d33f7be0cfb7156dfb35d39b3a303
BlobCache: remove the mutex locking

This change removes the mutex from the BlobCache class.  The caller must
be responsible for thread synchronization in order to properly implement
the Flattenable interface, which is coming soon.  Otherwise would be the
potential for the cache contents to change between the call to the
getFlattenedSize and flatten methods.  Because the caller must do this
synchronization anyway there's no reason to also some synchronization
inside BlobCache.

Change-Id: Ie1f4f6f82b78744f46a41ce863cac0cad276a20e
include/utils/BlobCache.h
libs/utils/BlobCache.cpp