Changeset 647 for trunk/tools


Ignore:
Timestamp:
Mar 7, 2010, 9:20:03 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

tools: assistant: Fixed 100% CPU load/system freeze when controlling the assistant remotely from another application caused by an invalid attempt to create a QSocketNotifier on a non-socket OS/2 file handle.

Location:
trunk/tools/assistant/tools/assistant
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/assistant/tools/assistant/assistant.pro

    r631 r647  
    3939           qtdocinstaller.h
    4040
    41 win32 {
     41win32 {
    4242    HEADERS += remotecontrol_win.h
    4343}
  • trunk/tools/assistant/tools/assistant/remotecontrol.cpp

    r561 r647  
    5555#include <QtHelp/QHelpIndexWidget>
    5656
    57 #ifdef Q_OS_WIN
     57#if
    5858#   include "remotecontrol_win.h"
    5959#endif
     
    6161QT_BEGIN_NAMESPACE
    6262
    63 #ifdef Q_OS_WIN
     63#if
    6464
    6565StdInListenerWin::StdInListenerWin(QObject *parent)
     
    7373    wait();
    7474}
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
    7597
    7698void StdInListenerWin::run()
     
    103125    }
    104126}
    105 #endif
     127
     128#endif // defined(Q_OS_OS2)
     129
     130#endif // defined(Q_OS_WIN) || defined(Q_OS_OS2)
    106131
    107132RemoteControl::RemoteControl(MainWindow *mainWindow, QHelpEngine *helpEngine)
     
    116141{
    117142    connect(m_mainWindow, SIGNAL(initDone()), this, SLOT(applyCache()));
    118 #ifdef Q_OS_WIN
     143#if
    119144    StdInListenerWin *l = new StdInListenerWin(this);
    120145    connect(l, SIGNAL(receivedCommand(QString)),
  • trunk/tools/assistant/tools/assistant/remotecontrol_win.h

    r561 r647  
    4343#define REMOTECONTROL_WIN_H
    4444
    45 #include <windows.h>
     45#if defined(Q_OS_WIN)
     46# include <windows.h>
     47#elif defined(Q_OS_OS2)
     48# include <qt_os2.h>
     49#endif
    4650#include <QtCore/QThread>
    4751
     
    5559    StdInListenerWin(QObject *parent);
    5660    ~StdInListenerWin();
    57    
     61
    5862signals:
    5963    void receivedCommand(const QString &cmd);
     
    6165private:
    6266    void run();
    63     bool ok;
    6467};
    6568
Note: See TracChangeset for help on using the changeset viewer.