include/SDL_mutex.h
changeset 6966 090df160f6e0
parent 6885 700f1b25f77f
child 6977 b73d51026c68
     1.1 --- a/include/SDL_mutex.h	Tue Mar 05 18:01:59 2013 -0500
     1.2 +++ b/include/SDL_mutex.h	Tue Mar 05 18:54:55 2013 -0500
     1.3 @@ -74,6 +74,13 @@
     1.4  extern DECLSPEC int SDLCALL SDL_mutexP(SDL_mutex * mutex);
     1.5  
     1.6  /**
     1.7 + *  Try to lock the mutex
     1.8 + *  
     1.9 + *  \return 0, SDL_MUTEX_TIMEDOUT, or -1 on error
    1.10 + */
    1.11 +extern DECLSPEC int SDLCALL SDL_TryLockMutex(SDL_mutex * mutex);
    1.12 +
    1.13 +/**
    1.14   *  Unlock the mutex.
    1.15   *  
    1.16   *  \return 0, or -1 on error.