[SDL] SDL_UpdateRect in Multithreaded App
pjmlp at progtools.org
Tue Jul 23 10:51:00 PDT 2002
Lock/unlock of surfaces have nothing to do
with threads. They are related to the way
SDL/device drivers access the surfaces.
IIRC in SDL you only issue SDL calls from the
> -----Original Message-----
> From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
> Arslan Basharat
> Sent: terca-feira, 23 de Julho de 2002 18:39
> To: sdl at libsdl.org
> Subject: [SDL] SDL_UpdateRect in Multithreaded App
> Hi all,
> I'm not a guru of SDL, want a little tip. I have an
> app with multiple threads, having different thread
> change the same surface. I use lock/unlock surface ,
> but what about the SDL_UpdateRect()? I guess the
> problem of Xlib: unexpected async reply is because of
> the problem of UpdateRect from one thread while the
> other thread is modifying the surface contents.
> or is there some other soluion?
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> SDL mailing list
> SDL at libsdl.org
More information about the SDL