mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
Weak refs don't quite work here correctly as there is always a race with taking the lock between find_view() and remove_view(). If find_view() returns a view that is going to removed by remove_view() then we have an interesting situation. In theory, the number and type of views for an image are relatively constant and should not change one they've been set up which means that it is actually practical to perform pool-like reference counting here where the image holds a pool of different views that it can give out as necessary. |
||
---|---|---|
.. | ||
check | ||
examples | ||
files | ||
icles | ||
meson.build |