mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
- mutex cleanup in network classes to try to avoid game freeze( hangs)
This commit is contained in:
@@ -86,6 +86,12 @@ public:
|
||||
ReleaseLock();
|
||||
}
|
||||
|
||||
void setMutex(Mutex *mutex,string ownerId="") {
|
||||
this->mutex = mutex;
|
||||
this->ownerId = ownerId;
|
||||
Lock();
|
||||
}
|
||||
|
||||
void Lock() {
|
||||
if(this->mutex != NULL) {
|
||||
#ifdef DEBUG_MUTEXES
|
||||
|
Reference in New Issue
Block a user