SDL 2.0
|
#include "../../SDL_internal.h"
#include "SDL_thread.h"
#include "SDL_systhread_c.h"
#include "SDL_log.h"
#include <system_error>
#include "SDL_sysmutex_c.h"
#include <Windows.h>
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 38 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 56 of file SDL_sysmutex.cpp.
References mutex, SDL_DestroySemaphore, SDL_free, and SDL_mutex::sem.
int SDL_mutexP | ( | SDL_mutex * | mutex | ) |
Definition at line 66 of file SDL_sysmutex.cpp.
References SDL_mutex::cpp_mutex, mutex, NULL, and SDL_SetError.
int SDL_mutexV | ( | SDL_mutex * | mutex | ) |
Definition at line 100 of file SDL_sysmutex.cpp.
References SDL_mutex::cpp_mutex, mutex, NULL, and SDL_SetError.
int SDL_TryLockMutex | ( | SDL_mutex * | mutex | ) |
Try to lock the mutex
Definition at line 84 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.