[vlc-devel] How to share a variable between qt4 ui (c++) and playlist thread (c)
fayyazkl at gmail.com
Wed Jan 9 13:16:22 CET 2013
Thank you Remi.
I understand that well and probably that is not a problem in my case.
The shared variable (char array) that i wish to create will be updated
by a dialog in the beginning of the program (though it can be chosen
from a list of dynamic options), before playlist components picks it up.
So there will be no sync issue.
Moreover, i am using PL Lock / unlock in both scenarios to ensure
Could you please elaborate a little more on a good location in source
code to prevent other include file issues? Right now i am a victim of those.
On 1/9/2013 5:11 PM, Rémi Denis-Courmont wrote:
> 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.
More information about the vlc-devel