Refcounting in dsound
reif at earthlink.net
Mon Jan 24 11:21:25 CST 2005
Paul Vriens wrote:
>while going through some leftover TRACE's of the Interlocked cleanup, I
>found the following refcounting in dsound/buffer.c and dsound.c:
>Is there a need to clean (i.e. use Interlocked*) this up?
buffer is not a COM object. Using Interlocked* functions will not
make it thread safe. This needs to be put under the dsb lock to be
correct but the odds of a program duplicating a buffer in one thread
while deleting a duplicated buffer in another are slim. I'll look
into fixing this when I get a chance.
More information about the wine-devel