memory: expose the internal locking api
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 3 Jul 2012 07:48:32 +0000 (09:48 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 5 Jul 2012 09:19:15 +0000 (11:19 +0200)
commit93f279cd5acd97ae115c74701bdd5ecc7326a13b
treec11cc61e70d2055adde6f395247d14cccfa7a1de
parent0f69f9e44adf0a64224ac345f41c5fb8d9e29321
memory: expose the internal locking api

Expose the internally used methods for locking and unlocking the object. Pass
the access mode to the unlock function for extra checks and because we need it
for the EXCLUSIVE locks.
Make some new defines to specify the desired locking.
Add a new EXCLUSIVE lock mode which will increment the shared counter. Objects
with a shared counter > 1 will not be lockable in WRITE mode.
docs/design/part-memory.txt
gst/gstmemory.c
gst/gstmemory.h