#include <qfile.h>
#include <qthread.h>
#include <qwaitcondition.h>
+#include <qmutex.h>
#ifdef WNT
#include <iostream.h>
* Class for executing systen commands
*/
// ================================================================
-QWaitCondition myWC;
+static QMutex myMutex(false);
+static QWaitCondition myWC;
class QProcessThread: public QThread
{
typedef QPtrList<QCheckListItem> ItemList;
QCheckListItem* item = myItems.first();
myCommands.pop_front();
myItems.removeFirst();
+ myMutex.lock();
SALOME_InstallWizard::postValidateEvent( myWizard, result, (void*)item );
if ( hasCommands() )
- myWC.wait();
+ myWC.wait(&myMutex);
+ myMutex.unlock();
};
}
InstallWizard::processValidateEvent( val, data );
return;
}
+ myMutex.lock();
+ myMutex.unlock();
QCheckListItem* item = (QCheckListItem*)data;
if ( val > 0 ) {
if ( val == 2 ) {
+// File : globals.h
+// Created : 14/01/2005
+// Author : Vadim SANDLER
+// Project : SALOME
+// Module : Installation Wizard
+// Copyright : 2004-2005 CEA
+
#if !defined( ___GLOBALS )
#define ___GLOBALS
// Created : Thu Mar 27 12:01:00 2003
// Author : Vadim SANDLER
// Project : SALOME
-// Module : InstallWizard
-// Copyright : 2003 CEA/DEN, EDF R&D
-// $Header$
+// Module : Installation Wizard
+// Copyright : 2004-2005 CEA
#ifndef ICONS_SALOME_INSTALL_H
#define ICONS_SALOME_INSTALL_H