[Libva] multi-threading
Julien Isorce
julien.isorce at gmail.com
Mon Dec 21 14:51:34 PST 2015
Hi,
Should the application assume that vaapi is thread safe ? Like for vdpau:
http://cgit.freedesktop.org/vdpau/libvdpau/tree/include/vdpau/vdpau.h#n209 .
Or is the thread safety delegated to the vaapi user like many libraries ?
I cannot see anything about thread in
http://cgit.freedesktop.org/vaapi/libva/tree/va/va.h .
Though in the intel driver http://cgit.freedesktop.org/vaapi/intel-driver/
there are some mutex:
i965->pp_mutex : post processing
i965->render_mutex : vaPutSurface
intel->ctxmutex : does not seem to be used
heap->mutex: (object_heap_allocate / object_heap_lookup ... )
>From that it means that the operations on the container of object IDs is
thread safe. But no assumptions on the objects them-self.
Any clarification in general ?
Thx in advance
Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libva/attachments/20151221/c662a304/attachment.html>
More information about the Libva
mailing list