OSDN Git Service

drm_hwcomposer: add AutoLock to automatically handle pthread_mutex_lock
authorZach Reizner <zachr@google.com>
Sat, 14 Nov 2015 00:09:39 +0000 (16:09 -0800)
committerZach Reizner <zachr@google.com>
Sat, 14 Nov 2015 00:09:39 +0000 (16:09 -0800)
commit49446bc72b33b8b68352b2048657bea4a8da4a42
tree6affe4ab0837e0cef4f66ad7853385e74d6a5ee9
parent8467b129419b0f78974bd478809ad32da4fd09fa
drm_hwcomposer: add AutoLock to automatically handle pthread_mutex_lock

For functions that need to hold locks and also handle errors, using AutoLock
will make them much simpler and less prone to mutex handling errors.

Change-Id: Ida6545850e89186c552e3d58b2973c14852494ad
Android.mk
autolock.cpp [new file with mode: 0644]
autolock.h [new file with mode: 0644]