[SDL] Re: Timers and multithreading
Sylvain.Hellegouarch
sylvain.hellegouarch at etud.univ-ubs.fr
Mon Dec 18 08:29:59 PST 2000
Mattias Engdegård wrote:
>
> >In an another program, the app is locked as soon as I Init SDL by
> >passing SDL_INIT_TIMER.
>
> that doesn't sound right --- please post a minimal failing example,
> and the exact circumstances of the crash (platform, SDL version, etc)
I'll do it as soon as possible...
>
> >So I just want to know how is done timers functions internally.
>
> Timers may be implemented as signals or as threads internally, so there
> isn't much you can do inside a timer handle portably. A good solution
> is to just post a user-defined event in your handler, and do the actual
> work from your main event loop instead
I remember you told me that solution on the irc and I use it but that
solution isn't good enough for me so that why I'm here to insist on the
SDL_Timers.
Moreover i know it's difficult to create non-machine dependant timers
and i just want to know the limits of SDL implementation about that !
More information about the SDL
mailing list