summaryrefslogtreecommitdiff
path: root/include/SDL_mutex.h
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2002-06-13 23:59:20 +0000
committerSam Lantinga <slouken@libsdl.org>2002-06-13 23:59:20 +0000
commit4ce49cabec864c4c74d612170fe09210a28de99e (patch)
tree8bb37c65cd4200e3c1fba19b71ebb1c99666b08a /include/SDL_mutex.h
parentf22361feb4ba9a3c28359098221642888f5810d6 (diff)
*** empty log message ***
Diffstat (limited to 'include/SDL_mutex.h')
-rw-r--r--include/SDL_mutex.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/SDL_mutex.h b/include/SDL_mutex.h
index fffc0b8e50..fa826888cb 100644
--- a/include/SDL_mutex.h
+++ b/include/SDL_mutex.h
@@ -66,7 +66,10 @@ extern DECLSPEC SDL_mutex * SDLCALL SDL_CreateMutex(void);
#define SDL_LockMutex(m) SDL_mutexP(m)
extern DECLSPEC int SDLCALL SDL_mutexP(SDL_mutex *mutex);
-/* Unlock the mutex (Returns 0, or -1 on error) */
+/* Unlock the mutex (Returns 0, or -1 on error)
+ It is an error to unlock a mutex that has not been locked by
+ the current thread, and doing so results in undefined behavior.
+ */
#define SDL_UnlockMutex(m) SDL_mutexV(m)
extern DECLSPEC int SDLCALL SDL_mutexV(SDL_mutex *mutex);