va: allocator: add a memory pool object helper
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 23 Nov 2020 19:44:27 +0000 (20:44 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 24 Nov 2020 12:00:00 +0000 (13:00 +0100)
commit8e6ad8267f4b60389179c9adf42bd5048b717a20
treef6b6850974c4b6bf22b555aaf6723ce1aeacf50d
parent8c128ead6ddbb750da48ce85c1552ea78c5017e6
va: allocator: add a memory pool object helper

Since both allocators use a memory pool, with its mutex and cond, this patch
refactors it into a single internal object, implementing a generic GstMemory
pool.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1815>
sys/va/gstvaallocator.c