include/SDL_mutex.h
changeset 6977 b73d51026c68
parent 6966 090df160f6e0
child 7191 75360622e65f
     1.1 --- a/include/SDL_mutex.h	Thu Mar 07 15:37:08 2013 -0800
     1.2 +++ b/include/SDL_mutex.h	Thu Mar 07 20:12:40 2013 -0800
     1.3 @@ -70,8 +70,8 @@
     1.4   *  
     1.5   *  \return 0, or -1 on error.
     1.6   */
     1.7 -#define SDL_LockMutex(m)	SDL_mutexP(m)
     1.8 -extern DECLSPEC int SDLCALL SDL_mutexP(SDL_mutex * mutex);
     1.9 +#define SDL_mutexP(m)	SDL_LockMutex(m)
    1.10 +extern DECLSPEC int SDLCALL SDL_LockMutex(SDL_mutex * mutex);
    1.11  
    1.12  /**
    1.13   *  Try to lock the mutex
    1.14 @@ -88,8 +88,8 @@
    1.15   *  \warning It is an error to unlock a mutex that has not been locked by
    1.16   *           the current thread, and doing so results in undefined behavior.
    1.17   */
    1.18 -#define SDL_UnlockMutex(m)	SDL_mutexV(m)
    1.19 -extern DECLSPEC int SDLCALL SDL_mutexV(SDL_mutex * mutex);
    1.20 +#define SDL_mutexV(m)	SDL_UnlockMutex(m)
    1.21 +extern DECLSPEC int SDLCALL SDL_UnlockMutex(SDL_mutex * mutex);
    1.22  
    1.23  /** 
    1.24   *  Destroy a mutex.