libdmabufheap: Make libdmabufheap threadsafe

libdmabufheap has a couple of private members that are not thread safe.
This patch addes syncronization to protect them from concurrent access.

Test: atest DmabufHeapTest
Bug: 153786620

Change-Id: Iadc8aaf4796a11f55f1149928e719cf5155431c0
2 files changed
tree: b2665a324955851a2bd162e6cfc0fa669be0574d
  1. include/
  2. tests/
  3. Android.bp
  4. BufferAllocator.cpp
  5. BufferAllocatorWrapper.cpp