[SDL] Using SDL_PushEvent

Bill Kendrick nbs at sonic.net
Thu Mar 17 11:32:58 PST 2005


On Thu, Mar 17, 2005 at 12:36:20PM -0600, Bob Pendleton wrote:
> Yes, you can call SDL_PushEvent() from another thread. It *IS* thread
> safe as it plainly stated in the documentation
> http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fPushEvent.
> 
> I do it all the time.

Heh, I was just looking at that an hour or so ago, and am using it
from inside a timer callback, myself...  (every time the timer ticks,
I get an SDL_USEREVENT event)

-bill!




More information about the SDL mailing list