- change sdl mutex name to new sdl2 name
This commit is contained in:
parent
c1144ad9d7
commit
16a11d6a6f
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue