include/SDL_thread.h
changeset 3578 0d1b16ee0bca
parent 3407 d3baf5ac4e37
child 3697 f7b03b6838cb
     1.1 --- a/include/SDL_thread.h	Wed Dec 16 03:02:31 2009 +0000
     1.2 +++ b/include/SDL_thread.h	Wed Dec 16 04:48:11 2009 +0000
     1.3 @@ -47,6 +47,9 @@
     1.4  struct SDL_Thread;
     1.5  typedef struct SDL_Thread SDL_Thread;
     1.6  
     1.7 +/* The SDL thread ID */
     1.8 +typedef unsigned long SDL_threadID;
     1.9 +
    1.10  #if defined(__WIN32__) && !defined(HAVE_LIBC)
    1.11  /**
    1.12   *  \file SDL_thread.h
    1.13 @@ -127,16 +130,16 @@
    1.14  #endif
    1.15  
    1.16  /**
    1.17 - *  Get the 32-bit thread identifier for the current thread.
    1.18 + *  Get the thread identifier for the current thread.
    1.19   */
    1.20 -extern DECLSPEC Uint32 SDLCALL SDL_ThreadID(void);
    1.21 +extern DECLSPEC SDL_threadID SDLCALL SDL_ThreadID(void);
    1.22  
    1.23  /**
    1.24 - *  Get the 32-bit thread identifier for the specified thread.
    1.25 + *  Get the thread identifier for the specified thread.
    1.26   *  
    1.27   *  Equivalent to SDL_ThreadID() if the specified thread is NULL.
    1.28   */
    1.29 -extern DECLSPEC Uint32 SDLCALL SDL_GetThreadID(SDL_Thread * thread);
    1.30 +extern DECLSPEC SDL_threadID SDLCALL SDL_GetThreadID(SDL_Thread * thread);
    1.31  
    1.32  /**
    1.33   *  Wait for a thread to finish.