author Sam Lantinga <>
Thu, 27 Jan 2011 14:45:06 -0800
changeset 5111 481dabb098ef
parent 5072 2341ecc03388
permissions -rw-r--r--
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.

* 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
     1 The latest development version of SDL is available via Mercurial.
     2 Mercurial allows you to get up-to-the-minute fixes and enhancements;
     3 as a developer works on a source tree, you can use "hg" to mirror that
     4 source tree instead of waiting for an official release. Please look
     5 at the Mercurial website ( ) for more
     6 information on using hg, where you can also download software for
     7 Mac OS X, Windows, and Unix systems.
     9   hg clone
    11 If you are building SDL with an IDE, you will need to copy the file
    12 include/SDL_config.h.default to include/SDL_config.h before building.
    14 If you are building SDL via configure, you will need to run
    15 before running configure.
    17 There is a web interface to the subversion repository at:
    21 There is an RSS feed available at that URL, for those that want to
    22 track commits in real time.