DDraw: Protect IDirectDrawImpl against race conditions

Stefan Dösinger stefandoesinger at gmx.at
Thu Dec 7 16:57:26 CST 2006


Am Donnerstag 07 Dezember 2006 21:17 schrieben Sie:
> Stefan Dösinger <stefandoesinger at gmx.at> writes:
> > @@ -356,6 +373,8 @@ IDirectDrawImpl_SetupFullscreenWindow(ID
> >   * Helper function that restores a windows' properties when taking it
> > out * of fullscreen mode
> >   *
> > + * Assumes that the critical section is properly held
> > + *
>
> This seems dangerous, changing the window size will potentially send
> messages to other threads, so doing it inside the lock can cause
> deadlocks.
So I should unlock before I change the window size?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20061207/c6c976bf/attachment.pgp


More information about the wine-devel mailing list