[vlc-devel] commit: Lua SD: let the user know we are working (Fabio Ritrovato )

Rémi Denis-Courmont remi at remlab.net
Wed Feb 24 15:54:55 CET 2010


On Wed, 24 Feb 2010 15:32:10 +0100, Jakob Leben <jakob.leben at gmail.com>
wrote:
> Well, I assumed that reading and writing a boolean from two different
> threads (SD and intf) might not be safe - could result in corrupted data
> being read. But maybe it is safe to assume that it is always atomic.

No. But why would you do it from different threads?

>> B: Or remove the b_loading field and pass the loading state as bool
>> through
>> callbacks all the way until Qt intf.
> 
>  Yes, this does probably not need to be kept in the core.
>
> I still think it is useful to have that in the core in case an
> interface wants to know the state even if it missed the state change
> event.

Then registering a VLC object variable is much easier and provide built-in
thread-safety and publish/subscribe.

-- 
Rémi Denis-Courmont
http://www.remlab.net
http://fi.linkedin.com/in/remidenis




More information about the vlc-devel mailing list