21 #include "../../SDL_internal.h"
28 #include <system_error>
43 }
catch (std::system_error & ex) {
44 SDL_SetError(
"unable to create a C++ mutex: code=%d; %s", ex.code(), ex.what());
46 }
catch (std::bad_alloc &) {
75 }
catch (std::system_error & ex) {
76 SDL_SetError(
"unable to lock a C++ mutex: code=%d; %s", ex.code(), ex.what());
#define SDL_OutOfMemory()
#define SDL_MUTEX_TIMEDOUT
int SDL_mutexP(SDL_mutex *mutex)
void SDL_DestroyMutex(SDL_mutex *mutex)
int SDL_mutexV(SDL_mutex *mutex)
int SDL_TryLockMutex(SDL_mutex *mutex)
SDL_mutex * SDL_CreateMutex(void)
std::recursive_mutex cpp_mutex