Mercurial > sdl-ios-xcode
view VisualCE/SDL.vcw @ 5113:481dabb098ef
Improved timer implementation
The new timer model is formalized as using a separate thread to handle timer callbacks. This was the case on almost every platform before, but it's now a requirement, and simplifies the implementation and makes it perform consistently across platforms.
Goals:
* Minimize timer thread blocking
* Dispatch timers as accurately as possible
* SDL_AddTimer() and SDL_RemoveTimer() are completely threadsafe
* SDL_RemoveTimer() doesn't crash with a timer that's expired or removed
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 27 Jan 2011 14:45:06 -0800 |
parents | d63e9f5944ae |
children |
line wrap: on
line source
Microsoft eMbedded Visual Tools Workspace File, Format Version 3.00 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! ############################################################################### Project: "loopwave"=.\loopwave\loopwave.vcp - Package Owner=<4> Package=<5> {{{ }}} Package=<4> {{{ Begin Project Dependency Project_Dep_Name SDL End Project Dependency Begin Project Dependency Project_Dep_Name SDLmain End Project Dependency }}} ############################################################################### Project: "SDL"=.\SDL\SDL.VCP - Package Owner=<4> Package=<5> {{{ }}} Package=<4> {{{ }}} ############################################################################### Project: "SDLmain"=.\SDLmain\SDLmain.vcp - Package Owner=<4> Package=<5> {{{ }}} Package=<4> {{{ Begin Project Dependency Project_Dep_Name SDL End Project Dependency }}} ############################################################################### Project: "testtimer"=.\testtimer\testtimer.vcp - Package Owner=<4> Package=<5> {{{ }}} Package=<4> {{{ Begin Project Dependency Project_Dep_Name SDL End Project Dependency Begin Project Dependency Project_Dep_Name SDLmain End Project Dependency }}} ############################################################################### Project: "testalpha"=.\testalpha\testalpha.vcp - Package Owner=<4> Package=<5> {{{ }}} Package=<4> {{{ Begin Project Dependency Project_Dep_Name SDL End Project Dependency Begin Project Dependency Project_Dep_Name SDLmain End Project Dependency }}} ############################################################################### Project: "testwin"=.\testwin\testwin.vcp - Package Owner=<4> Package=<5> {{{ }}} Package=<4> {{{ Begin Project Dependency Project_Dep_Name SDL End Project Dependency Begin Project Dependency Project_Dep_Name SDLmain End Project Dependency }}} ############################################################################### Global: Package=<5> {{{ }}} Package=<3> {{{ }}} ###############################################################################