winemac: Move CVDisplayLink operations out of @synchronized blocks to avoid potential...
commit24d3795285102170834ee624e3d07036c87005ca
authorKen Thomases <ken@codeweavers.com>
Mon, 8 May 2017 17:52:02 +0000 (8 12:52 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 8 May 2017 21:25:54 +0000 (8 16:25 -0500)
treec1342a08b535220295899449a52c32ba2ac68d15
parente90aaaabe66019903832731c49274466f1b6aed1
winemac: Move CVDisplayLink operations out of @synchronized blocks to avoid potential deadlock.

The -fire method called by the display link callback also synchronizes on self
(while accessing the windows array).  Display link operations use a lock to
synchronize, too, and it's held while the callback is running.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/cocoa_window.m