Commit 386173d4 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Trk: Fix deadlocks, introduce reader thread.

Make locking more fine-grained, move handling of the
No-op message into the WriterThread (basically, do not
lock dataMutex over invocation of the no-op message
as this might queue messages). Introduce a reader thread
using select()/Windows overlapped I/O, removing the need
for timers.
parent 8f6aa225
This diff is collapsed.
......@@ -104,12 +104,16 @@ signals:
void error(const QString &msg);
void logMessage(const QString &msg);
protected:
private slots:
void dataReceived(char c);
void dataReceived(const QByteArray &a);
protected slots:
void emitError(const QString &msg);
void emitLogMessage(const QString &msg);
virtual void timerEvent(QTimerEvent *ev);
private:
void readMessages();
TrkDevicePrivate *d;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment