|
SDL
2.0
|
#include "../../SDL_internal.h"#include "SDL_thread.h"#include "SDL_systhread_c.h"#include <system_error>#include "SDL_sysmutex_c.h"#include <Windows.h>
Include dependency graph for SDL_sysmutex.cpp:Go to the source code of this file.
Functions | |
| SDL_mutex * | SDL_CreateMutex (void) |
| void | SDL_DestroyMutex (SDL_mutex *mutex) |
| int | SDL_mutexP (SDL_mutex *mutex) |
| int | SDL_TryLockMutex (SDL_mutex *mutex) |
| int | SDL_mutexV (SDL_mutex *mutex) |
Create a mutex, initialized unlocked.
Definition at line 37 of file SDL_sysmutex.cpp.
References mutex, NULL, SDL_mutex::owner, SDL_mutex::recursive, SDL_CreateSemaphore, SDL_free, SDL_malloc, SDL_OutOfMemory, SDL_SetError, and SDL_mutex::sem.
Destroy a mutex.
Definition at line 55 of file SDL_sysmutex.cpp.
References mutex, SDL_DestroySemaphore, SDL_free, and SDL_mutex::sem.
Definition at line 65 of file SDL_sysmutex.cpp.
References SDL_mutex::cpp_mutex, mutex, NULL, and SDL_SetError.
Definition at line 99 of file SDL_sysmutex.cpp.
References SDL_mutex::cpp_mutex, mutex, NULL, and SDL_SetError.
Try to lock the mutex
Definition at line 83 of file SDL_sysmutex.cpp.
References SDL_mutex::cpp_mutex, mutex, NULL, SDL_mutex::owner, SDL_mutex::recursive, retval, SDL_MUTEX_TIMEDOUT, SDL_SemWait, SDL_SetError, SDL_ThreadID, and SDL_mutex::sem.