Confirmed users
523
edits
Line 100: | Line 100: | ||
** If the new write lock attempt is using the same handle to the gralloc buffer that is already locked, this will fail. This typically gives a message like "trying to upgrade a read lock to a write lock". | ** If the new write lock attempt is using the same handle to the gralloc buffer that is already locked, this will fail. This typically gives a message like "trying to upgrade a read lock to a write lock". | ||
** If the new write lock attempt is using a different handle than the one already locked, then this locking operation will wait until the existing lock is released. | ** If the new write lock attempt is using a different handle than the one already locked, then this locking operation will wait until the existing lock is released. | ||
* A write lock can be converted into a read lock. | |||