[MPlayer-dev-eng] [PATCH] Prevent ao_win32 from hanging during uninit(0)
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Mar 5 21:56:18 CET 2009
On Thu, Mar 05, 2009 at 02:47:59PM -0500, David Bolen wrote:
> But yeah, we need locking for those cross-thread values.
I'd like to point out that as long as we assume atomic writes to ints
(not an issue considering this is Windows-specific code, and in general
a very minor one at most) there is no need for locks.
You'd just need to change waveOutProc to increase a read_buf (%
BUFFER_COUNT), i.e. the basic thread-safe, lock-free produce-consumer
FIFO.
More information about the MPlayer-dev-eng
mailing list