[vlc-devel] [PATCH 1/3] [RFC] chromecast: use a dummy socket to notify the receiving thread of pending work
Rémi Denis-Courmont
remi at remlab.net
Mon May 9 16:59:08 CEST 2016
Le 2016-05-09 14:48, Rémi Denis-Courmont a écrit :
> Le 2016-05-09 12:53, Steve Lhomme a écrit :
>> --
>> In some cases we will need to send STOP or SEEK messages from some
>> threads
>> that have been interrupted, resulting in TLS not sending the data.
>> So now
>> we send messages from the receiving thread.
>
> This was already rejected earlier. I fail to see any relevant
> difference.
LOCK
A = B
UNLOCK
is almost always a bug. This has already been discussed a number of
times here. And in the unlikely event that it is not a bug, you can use
atomic ops instead, so it is a bug anyway.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list