76 mMutex(SDL_CreateMutex())
87 if (SDL_mutexP(
mMutex) == -1)
88 logger->
log(
"Mutex locking failed: %s", SDL_GetError());
93 if (SDL_mutexV(
mMutex) == -1)
94 logger->
log(
"Mutex unlocking failed: %s", SDL_GetError());
void log(const char *const log_text,...)
MutexLocker(const MutexLocker &m)
MutexLocker(Mutex *const mutex)
#define A_DELETE_COPY(func)
#define A_DEFAULT_COPY(func)