- numerous thread bugfixes related to menu stability and ftp server socket usage

This commit is contained in:
Mark Vejvoda
2011-01-02 09:33:37 +00:00
parent 2b1732e27e
commit 5f4d3e9088
16 changed files with 235 additions and 100 deletions

View File

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

View File

@@ -91,6 +91,9 @@ public:
this->ownerId = ownerId;
Lock();
}
bool isValidMutex() const {
return(this->mutex != NULL);
}
void Lock() {
if(this->mutex != NULL) {