What is the EXCLUSIVE access mode in gst_mini_object_lock()
Wim Taymans
wim.taymans at gmail.com
Mon Oct 19 08:07:41 PDT 2015
Hi,
It means the object is shared (like when a memory is added to 2 buffers).
When the object is locked exclusively more than 1 time, you can't write to
it (otherwise both holders of the exclusive lock would see each others
changes).
Wim
On 19 October 2015 at 16:50, cee1 <fykcee1 at gmail.com> wrote:
> Hi all,
>
> From the source code, It seems a mini object can be "shared" under
> __EXCLUSIVE__ access mode?
> """
>
> http://cgit.freedesktop.org/gstreamer/gstreamer/tree/gst/gstminiobject.c#n190
>
> gst_mini_object_lock()
> ...
> if (access_mode & GST_LOCK_FLAG_EXCLUSIVE) {
> /* shared ref */
> newstate += SHARE_ONE;
> access_mode &= ~GST_LOCK_FLAG_EXCLUSIVE;
> }
> """
>
>
>
> --
> Regards,
>
> - cee1
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151019/fb46d471/attachment.html>
More information about the gstreamer-devel
mailing list