- mutex cleanup in network classes to try to avoid game freeze( hangs)

This commit is contained in:
Mark Vejvoda
2010-12-25 22:38:00 +00:00
parent bf8be83ccc
commit b006e72b53
4 changed files with 111 additions and 118 deletions

View File

@@ -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