backends: Make the SDL backend thread safe.
commitb549f66c9fc9e0ccb125692a7a2570bbe2016cdc
authorCyril Hrubis <metan@ucw.cz>
Tue, 17 Jan 2012 10:59:23 +0000 (17 11:59 +0100)
committerCyril Hrubis <metan@ucw.cz>
Tue, 17 Jan 2012 10:59:23 +0000 (17 11:59 +0100)
tree9a61c1644dfb8f04b53f46907bd08a6b8a032c60
parent4d4ca995c2d6ae58d85863cae26c4369d5bd0967
backends: Make the SDL backend thread safe.

The SDL_Flip, SDL_UpdateRect, SDL_Poll and SDL_Quit
are not thread safe. If these clash while running on
xserver, asynchronous communication is detected and
the connection is aborted. Fix that by guarding these
by a mutex.
libs/backends/GP_SDL.c