mirror of
https://github.com/glest/glest-source.git
synced 2025-08-09 09:56:30 +02:00
- change sdl mutex name to new sdl2 name
This commit is contained in:
@@ -140,12 +140,12 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
inline void p() {
|
inline void p() {
|
||||||
SDL_mutexP(mutex);
|
SDL_LockMutex(mutex);
|
||||||
refCount++;
|
refCount++;
|
||||||
}
|
}
|
||||||
inline void v() {
|
inline void v() {
|
||||||
refCount--;
|
refCount--;
|
||||||
SDL_mutexV(mutex);
|
SDL_UnlockMutex(mutex);
|
||||||
}
|
}
|
||||||
inline int getRefCount() const { return refCount; }
|
inline int getRefCount() const { return refCount; }
|
||||||
|
|
||||||
|
@@ -421,12 +421,12 @@ public:
|
|||||||
|
|
||||||
void Lock() {
|
void Lock() {
|
||||||
if(mutex != NULL && *mutex != NULL) {
|
if(mutex != NULL && *mutex != NULL) {
|
||||||
SDL_mutexP(*mutex);
|
SDL_LockMutex(*mutex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void ReleaseLock(bool keepMutex=false) {
|
void ReleaseLock(bool keepMutex=false) {
|
||||||
if(mutex != NULL && *mutex != NULL) {
|
if(mutex != NULL && *mutex != NULL) {
|
||||||
SDL_mutexV(*mutex);
|
SDL_UnlockMutex(*mutex);
|
||||||
|
|
||||||
if(keepMutex == false) {
|
if(keepMutex == false) {
|
||||||
mutex = NULL;
|
mutex = NULL;
|
||||||
|
Reference in New Issue
Block a user