mirror of
https://github.com/glest/glest-source.git
synced 2025-08-10 02:16:31 +02:00
- attempt to speed up mutex lock / unlock
This commit is contained in:
@@ -139,8 +139,14 @@ public:
|
||||
this->ownerId = ownerId;
|
||||
}
|
||||
}
|
||||
void p();
|
||||
void v();
|
||||
inline void p() {
|
||||
SDL_mutexP(mutex);
|
||||
refCount++;
|
||||
}
|
||||
inline void v() {
|
||||
refCount--;
|
||||
SDL_mutexV(mutex);
|
||||
}
|
||||
inline int getRefCount() const { return refCount; }
|
||||
|
||||
inline SDL_mutex* getMutex() { return mutex; }
|
||||
|
Reference in New Issue
Block a user