New to threading

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

New to threading

Andrew Grace
Is there any recommended reading on threading and how it is handled with gstreamer?

I'm interested because I'm working on a source element for a camera (the point grey ladybug camera which has a C api).  I'm somewhat new to this, so I am wondering if an element that will act as a pipeline source needs to run on a background thread if it has a blocking api.  From the camera docs, it says it can run in isochronous or asynchronous mode.  The isochronous mode blocks, but from what I understand should have better performance.

I'd appreciate any advice.  Thanks!
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: New to threading

Nicolas Dufresne-5


Le 9 mars 2017 9:51 AM, "Andrew Grace" <[hidden email]> a écrit :
Is there any recommended reading on threading and how it is handled with gstreamer?

I'm interested because I'm working on a source element for a camera (the point grey ladybug camera which has a C api).  I'm somewhat new to this, so I am wondering if an element that will act as a pipeline source needs to run on a background thread if it has a blocking api.  From the camera docs, it says it can run in isochronous or asynchronous mode.  The isochronous mode blocks, but from what I understand should have better performance.

GstBaseSrc is a base class that handle source threading for you.



I'd appreciate any advice.  Thanks!
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: New to threading

filnet
Did you see this : https://gstreamer.freedesktop.org/documentation/application-development/advanced/threads.html


Le Vendredi 10 mars 2017 2h50, Nicolas Dufresne <[hidden email]> a écrit :




Le 9 mars 2017 9:51 AM, "Andrew Grace" <[hidden email]> a écrit :
Is there any recommended reading on threading and how it is handled with gstreamer?

I'm interested because I'm working on a source element for a camera (the point grey ladybug camera which has a C api).  I'm somewhat new to this, so I am wondering if an element that will act as a pipeline source needs to run on a background thread if it has a blocking api.  From the camera docs, it says it can run in isochronous or asynchronous mode.  The isochronous mode blocks, but from what I understand should have better performance.

GstBaseSrc is a base class that handle source threading for you.



I'd appreciate any advice.  Thanks!
______________________________ _________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/ mailman/listinfo/gstreamer- devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel