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_OutOfMemory, and SDL_SetError.
int SDL_mutexP | ( | SDL_mutex * | mutex | ) |
Definition at line 66 of file SDL_sysmutex.cpp.
References SDL_mutex::cpp_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, 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, NULL, retval, SDL_MUTEX_TIMEDOUT, and SDL_SetError.