mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 21:33:59 +02:00
- numerous thread bugfixes related to menu stability and ftp server socket usage
This commit is contained in:
@@ -35,6 +35,9 @@ protected:
|
||||
|
||||
Mutex mutexThreadObjectAccessor;
|
||||
|
||||
bool threadOwnerValid;
|
||||
Mutex mutexThreadOwnerValid;
|
||||
|
||||
Mutex mutexExecutingTask;
|
||||
bool executingTask;
|
||||
|
||||
@@ -74,6 +77,11 @@ public:
|
||||
void setExecutingTask(bool value);
|
||||
bool getExecutingTask();
|
||||
|
||||
|
||||
void setThreadOwnerValid(bool value);
|
||||
bool getThreadOwnerValid();
|
||||
Mutex * getMutexThreadOwnerValid();
|
||||
|
||||
Mutex * getMutexThreadObjectAccessor() { return &mutexThreadObjectAccessor; }
|
||||
};
|
||||
|
||||
|
@@ -91,6 +91,9 @@ public:
|
||||
this->ownerId = ownerId;
|
||||
Lock();
|
||||
}
|
||||
bool isValidMutex() const {
|
||||
return(this->mutex != NULL);
|
||||
}
|
||||
|
||||
void Lock() {
|
||||
if(this->mutex != NULL) {
|
||||
|
Reference in New Issue
Block a user