Safe functions for timers

Ok, my problem is this. I try to call SDL_PushEvent during a timer
callback (which it says it’s ok in the docs, I believe), and nothing
happens until the end of the program, in which all the events come pouring
in (I watch for events with SDL_WaitEvent). But if I increment a variable
during the callback, and check it every so often, it’s fine. Is there
anything I’m missing here? Should I post some of the code that’s not
working, or is there a simple explanation?–

  • Mik Mifflin