- change sdl mutex name to new sdl2 name

This commit is contained in:
SoftCoder 2015-12-28 23:51:19 -08:00
parent c1144ad9d7
commit 16a11d6a6f
2 changed files with 4 additions and 4 deletions

View File

@ -140,12 +140,12 @@ public:
}
}
inline void p() {
SDL_mutexP(mutex);
SDL_LockMutex(mutex);
refCount++;
}
inline void v() {
refCount--;
SDL_mutexV(mutex);
SDL_UnlockMutex(mutex);
}
inline int getRefCount() const { return refCount; }

View File

@ -421,12 +421,12 @@ public:
void Lock() {
if(mutex != NULL && *mutex != NULL) {
SDL_mutexP(*mutex);
SDL_LockMutex(*mutex);
}
}
void ReleaseLock(bool keepMutex=false) {
if(mutex != NULL && *mutex != NULL) {
SDL_mutexV(*mutex);
SDL_UnlockMutex(*mutex);
if(keepMutex == false) {
mutex = NULL;