Rtsp server: authentication in another thread

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Rtsp server: authentication in another thread

Igor
My application returns data for authentification in another thread.

I use:

    auth = gst_rtsp_auth_new();
    GstRTSPAuthClass* klass = GST_RTSP_AUTH_GET_CLASS(auth);
    klass->authenticate = authentificateAndAuthorizeAsync;
    ...

gboolean authentificateAndAuthorizeAsync(GstRTSPAuth *auth, GstRTSPContext
*ctx)
{
    /*can send required answer in another thread*/    
    return true;
}

How can I use asynchronous authentification  without blocking first thread.

C++-tools like condition_variables and future/promise are not attractive, as
far as they blocks first thread.

Maybe GStreamer can handle it natively?

Thanks!




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel