[libgralloc plugin] handle the gralloc_unlock well when the android_atomic_cmpxchg... beagle-eclair beagle-eclair-0x5
authorTick Chen <tick@0xlab.org>
Tue, 8 Jun 2010 03:26:07 +0000 (11:26 +0800)
committerTick Chen <tick@0xlab.org>
Tue, 8 Jun 2010 03:29:49 +0000 (11:29 +0800)
commit2741d2b66221750bb27c692cf6615e2d42499690
treea00e5353f2f5dbc9fd9cef2702f8aba9bfc4c4c7
parent1cdf2922a37ea9095a74254f64d9539ba01139e4
[libgralloc plugin] handle the gralloc_unlock well when the android_atomic_cmpxchg returns TRUE.

Because of the android_atomic_cmpxchg may failed, and the new_value will not having the original condiction to set the correct value. We should set the hnd->writeOwner later.

Change-Id: Ia555eea65e857e79bccf0b88c2f10e82b834fa8e
mapper.cpp