[vlc-devel] Re: D-Bus multiple APIs in vlc code
funman at videolan.org
Tue Nov 28 16:17:04 CET 2006
On Tue, 28 Nov 2006 16:03:16 +0100
Rémi Denis-Courmont <rem at videolan.org> wrote:
> I think GNU portable threads are unusable because it breaks too many
> dependencies. And then, apart from Win32 threads, I suspect none of the
> implementations are actually still in use.
> > Another problem of D-Bus is that for an application to be able to use
> > it from multiple threads, it has to call the dbus_thread_init()
> > function.
> AFAICT, VLC uses POSIX threads on systems with dbus. I presume you can
> tell dbus to use POSIX threads directly. The GnuTLS plugin already does
> that when LIBVLC_USE_PTHREAD is defined. One obvious advantage is that
> it may avoid confusing the library when something else also uses it
> within the same process.
> Which features are missing from the VLC threading API by the way?
See my 2nd comment on https://trac.videolan.org/vlc/ticket/848
You'll also notice i'm not a threads expert, and the ticket was about giving dbus the vlc threads functions vlc_mutex_lock() etc.., not the lowlevel threads functions vlc will call.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
More information about the vlc-devel