1. 08 Apr, 2011 1 commit
  2. 25 Mar, 2011 1 commit
  3. 12 Feb, 2011 1 commit
  4. 27 Jan, 2011 1 commit
    • Sam Lantinga's avatar
      Improved timer implementation · dd4f2c13
      Sam Lantinga authored
      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
      dd4f2c13
  5. 14 Jul, 2010 1 commit
  6. 24 Jan, 2010 2 commits
    • Sam Lantinga's avatar
      Fixed bug #926 · 4d3df8b3
      Sam Lantinga authored
      Updated copyright to LGPL version 2.1 and year 2010
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404453
      4d3df8b3
    • Sam Lantinga's avatar
      Fixed bug #935 · 9d792069
      Sam Lantinga authored
      Patrice Mandin
      
      Hello,
      
      I originally added pth support for threads in SDL 1.2 because on the Atari
      platform we did not have any thread library.
      
      I think pth support could be removed from SDL 1.3 for two reasons:
      
      - Atari platform removed
      
      - pth does not provides real (preemptive) threads, because it is user space,
      and expect the application to call one of its function to give CPU to another
      thread. So it is not exactly useful for applications, that expect threads to
      run simultaneously.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404452
      9d792069
  7. 08 Dec, 2008 1 commit
    • Sam Lantinga's avatar
      Updated copyright date · 0c30a927
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403321
      0c30a927
  8. 27 Aug, 2008 1 commit
  9. 10 Jul, 2006 1 commit
  10. 14 Apr, 2006 1 commit
  11. 23 Mar, 2006 1 commit
  12. 21 Feb, 2006 1 commit
  13. 20 Feb, 2006 1 commit
    • Sam Lantinga's avatar
      NetBSD support · 5427ab02
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401387
      5427ab02
  14. 16 Feb, 2006 1 commit
  15. 10 Feb, 2006 1 commit
  16. 07 Feb, 2006 1 commit
    • Sam Lantinga's avatar
      Use SDL_ prefixed versions of C library functions. · 5d53175e
      Sam Lantinga authored
      FIXME:
      Change #include <stdlib.h> to #include "SDL_stdlib.h"
      Change #include <string.h> to #include "SDL_string.h"
      Make sure nothing else broke because of this...
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401340
      5d53175e
  17. 03 Feb, 2006 1 commit
    • Sam Lantinga's avatar
      From: Hayashi Naoyuki · 2a89b508
      Sam Lantinga authored
      I tried to compile with gcc on Tru64, and got the following error.
      SDL_systimer.c:45:45: error: operator '&&' has no right operand
      
      It succeeds if changing
      #if (defined _POSIX_TIMERS && _POSIX_TIMERS > 0)
      to
      #if (defined _POSIX_TIMERS && _POSIX_TIMERS + 0 > 0)
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401329
      2a89b508
  18. 01 Feb, 2006 1 commit
  19. 11 Oct, 2005 3 commits
    • Ryan C. Gordon's avatar
      POSIX clock_gettime() isn't available on Linux before 2.6, and the symbol may · 071e2180
      Ryan C. Gordon authored
       just be flat out missing from glibc, so force use of previous gettimeofday()
       behaviour for now.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401161
      071e2180
    • Ryan C. Gordon's avatar
      Date: Mon, 10 Oct 2005 13:09:32 +0300 · 5f482106
      Ryan C. Gordon authored
      From: Tommi Kyntola <tommi.kyntola@ray.fi>
      To: sdl@libsdl.org
      Subject: [SDL] [RFC] get_ticks broken on linux
      
      It uses gettimeofday to calculate the timedifference.
      Gettimeofday returns current time which is seldom monotonous.
      This breaks SDL timer subsystem. (time callbacks and all that
      get borked when the time difference ms is suddenly ~ 2^32)
      
      I posted a message about this earlier but got no response.
      Some thoughts on this matter would be appreciated.
      (Or even an explanation for the lack of interest.)
      
      A patch below would use the posix timers that have been around
      since posix 93 and do provide a good source of monotonous time
      on linux boxes (and on few others too).
      
      The following patch is also availabe at:
      http://www.hut.fi/u/tkyntola/SDL-1.2.9-clockfix.patch
      
      It's against 1.2.9, but I can easily rediffit against
      the cvs branch is needed.
      
      cheers,
      Tommi Kyntola            tommi.kyntola@ray.fi
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401160
      5f482106
    • Ryan C. Gordon's avatar
      Date: Tue, 11 Oct 2005 16:58:12 +0300 (EEST) · cdc45512
      Ryan C. Gordon authored
      From: =?ISO-8859-1?Q?Martin_Storsj=F6?= <martin@martin.st>
      To: sdl@libsdl.org
      Subject: [SDL] [PATCH] Use nanosleep on OS X
      
      Hi,
      
      The current version of SDL_Delay on OS X seems to always sleep at least 10
      msec. OS X has nanosleep(), which performs shorter sleeps well. The
      attached patch makes it use that one instead of select() as currently.
      
      // Martin
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401159
      cdc45512
  20. 04 Jan, 2004 1 commit
  21. 13 Jun, 2002 1 commit
  22. 04 Jun, 2002 1 commit
  23. 24 Mar, 2002 1 commit
  24. 23 Mar, 2002 1 commit
  25. 06 Mar, 2002 1 commit
  26. 14 Dec, 2001 1 commit
  27. 04 Sep, 2001 1 commit
  28. 26 Apr, 2001 2 commits