[vlc-devel] How to share a variable between qt4 ui (c++) and playlist thread (c)

Rémi Denis-Courmont remi at remlab.net
Wed Jan 9 13:11:30 CET 2013

On Wed, 9 Jan 2013 14:28:28 +0500, fayyaz lodhi <fayyazkl at gmail.com>
> What is the correct way of sharing data between the two?

I don't need to remind you that the multi-threaded memory model (either
POSIX or C11) forbids sharing data directly unless the data is constant

You need to add functions instead, including appropriate synchronization
depending on the actual case.

Rémi Denis-Courmont
Sent from my collocated server

More information about the vlc-devel mailing list