include/SDL_thread.h
changeset 7653 9a0e274b8aa7
parent 7528 1890a896802f
child 7978 70ac84e49797
equal deleted inserted replaced
7652:cf8970659129 7653:9a0e274b8aa7
    49 typedef unsigned long SDL_threadID;
    49 typedef unsigned long SDL_threadID;
    50 
    50 
    51 /* Thread local storage ID, 0 is the invalid ID */
    51 /* Thread local storage ID, 0 is the invalid ID */
    52 typedef unsigned int SDL_TLSID;
    52 typedef unsigned int SDL_TLSID;
    53 
    53 
    54 /* The SDL thread priority
    54 /**
    55  *
    55  *  The SDL thread priority.
    56  * Note: On many systems you require special privileges to set high priority.
    56  *
       
    57  *  \note On many systems you require special privileges to set high priority.
    57  */
    58  */
    58 typedef enum {
    59 typedef enum {
    59     SDL_THREAD_PRIORITY_LOW,
    60     SDL_THREAD_PRIORITY_LOW,
    60     SDL_THREAD_PRIORITY_NORMAL,
    61     SDL_THREAD_PRIORITY_NORMAL,
    61     SDL_THREAD_PRIORITY_HIGH
    62     SDL_THREAD_PRIORITY_HIGH
    62 } SDL_ThreadPriority;
    63 } SDL_ThreadPriority;
    63 
    64 
    64 /* The function passed to SDL_CreateThread()
    65 /**
    65    It is passed a void* user context parameter and returns an int.
    66  *  The function passed to SDL_CreateThread().
       
    67  *  It is passed a void* user context parameter and returns an int.
    66  */
    68  */
    67 typedef int (SDLCALL * SDL_ThreadFunction) (void *data);
    69 typedef int (SDLCALL * SDL_ThreadFunction) (void *data);
    68 
    70 
    69 #if defined(__WIN32__) && !defined(HAVE_LIBC)
    71 #if defined(__WIN32__) && !defined(HAVE_LIBC)
    70 /**
    72 /**