dsound: Don't deadlock in capture because of callback

Maarten Lankhorst m.b.lankhorst at gmail.com
Sat Apr 21 13:37:26 CDT 2007


Doing the capture tests for alsa (dsound emulation) I came across an
interesting deadlock:

GetCurrentPosition obtains critsect and calls widGetPosition.
widGetPosition is blocked by the capture callback.
capture callback tries to obtain critsect.

The lock isn't really needed at that place so I'm moving it a little.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nowavelock.patch
Type: text/x-patch
Size: 813 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070421/c3bc23e3/nowavelock.bin


More information about the wine-patches mailing list