wpe: context thread dispatch fixes
authorPhilippe Normand <philn@igalia.com>
Sat, 18 Sep 2021 11:02:15 +0000 (12:02 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 20 Sep 2021 14:44:19 +0000 (14:44 +0000)
commit0538929847a9c7dd527e41c42ad874e3acf8ab56
treeef8e1f229f7738bb77356f90dc40877f9edafa0e
parent4af3442d4aef31897de87d4cde15102b5d773003
wpe: context thread dispatch fixes

Use dedicated mutex/cond/flag for jobs being dispatched in the context thread.
The previous code was signalling the thread startup condition, which is wrong.
When WPEContextThread::dispatch() is invoked it means the thread has already
correctly been started up.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2533>
ext/wpe/WPEThreadedView.cpp