fixed: ThreadMenager should use Lock/Unlock in StartAll() method

added: Job class (system->job object)
       a general mechanism for jobs (by using PT::Space as a job structure)
       WINIX_JOB plugin message will be sent with a pointer to PT::Space



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@829 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-04-25 22:24:37 +00:00
parent baf10a9ba9
commit 1da1eef768
19 changed files with 1323 additions and 958 deletions

View File

@@ -55,9 +55,13 @@ void ThreadManager::Add(BaseThread * pbase)
void ThreadManager::StartAll()
{
synchro->Lock();
for(size_t i=0 ; i<thread_tab.size() ; ++i)
Start(i);
synchro->Unlock();
were_started = true;
}