Commit Graph

6 Commits

Author SHA1 Message Date
Naomi Luis
2f579e15da libgenlock: Remove the call to GENLOCK_IOC_RELEASE.
The GENLOCK_IOC_RELEASE ioctl is now deprecated. This was done because to
avoid race conditions where the handle was released before another client
tried to unlock it.

(cherry picked from commit d1514357422ce130d3e2776f984294a9efeea83e)

Change-Id: Iaf433a79dd0dad992cbf67180765718beec4eb1c
CRs-fixed: 333141
2012-03-16 20:42:49 -05:00
Jeff Boody
1077e7cce3 add GRALLOC_USAGE_PRIVATE_UNSYNCHRONIZED for explicit synchronization.
Change-Id: I3d78f0517f7eeafc58ec5b0edfc6a04901ad48b2
(cherry picked from commit 35229ceb772a4a3c0a9dbfcb42fdb45344a91b4e)
2012-03-16 20:35:18 -05:00
toastcfh
c8f578b1c9 libgenlock: clean up kernel includes and make USE_GENLOCK a BoardConfig option.
this fixes issues with devices not yet supporting the genlock API in in kernel space.

Change-Id: I734d8db95f7030c1492122283d76e81ca5fb8aa2
2011-12-18 19:51:58 -05:00
Naomi Luis
0e8663d5f2 libgenlock: Enable the USE_GENLOCK flag.
Change-Id: I2349de455eb82f2b10d2ccac1c318d7cef2901ae
2011-11-28 16:08:22 -08:00
Naomi Luis
d415cbf061 libgenlock: Add compile time flag.
Add a compile time flag USE_GENLOCK to enable/disable genlock.

Change-Id: I3b442a52b446c2a5e0417ba1058460bdee02fc90
2011-11-26 09:27:36 +05:30
Naomi Luis
aa4994d543 Add a generic buffer locking API.
Add libgenlock which is a cross-process buffer locking API. libgenlock
provides the ability to create, attach, release locks. It also provides
a mechanism to lock and unlock buffers for read/write purposes.

Change-Id: I5172a82539b83bcb1226e3fd4f7b80a5c7f31016
2011-11-23 14:39:28 -08:00