Mercurial > hg > svcore
comparison data/fileio/FileReadThread.h @ 1599:ce185d4dd408 bqaudiostream
Merge from default branch
author | Chris Cannam |
---|---|
date | Wed, 23 Jan 2019 14:43:43 +0000 |
parents | ad5f892c0c4d |
children |
comparison
equal
deleted
inserted
replaced
1598:d2555df635ec | 1599:ce185d4dd408 |
---|---|
11 published by the Free Software Foundation; either version 2 of the | 11 published by the Free Software Foundation; either version 2 of the |
12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 |
16 #ifndef _FILE_READ_THREAD_H_ | 16 #ifndef SV_FILE_READ_THREAD_H |
17 #define _FILE_READ_THREAD_H_ | 17 #define SV_FILE_READ_THREAD_H |
18 | 18 |
19 #include "base/Thread.h" | 19 #include "base/Thread.h" |
20 | 20 |
21 #include <QMutex> | 21 #include <QMutex> |
22 #include <QWaitCondition> | 22 #include <QWaitCondition> |
31 Q_OBJECT | 31 Q_OBJECT |
32 | 32 |
33 public: | 33 public: |
34 FileReadThread(); | 34 FileReadThread(); |
35 | 35 |
36 virtual void run(); | 36 void run() override; |
37 virtual void finish(); | 37 virtual void finish(); |
38 | 38 |
39 struct Request { | 39 struct Request { |
40 int fd; | 40 int fd; |
41 QMutex *mutex; // used to synchronise access to fd; may be null | 41 QMutex *mutex; // used to synchronise access to fd; may be null |