comparison base/Thread.h @ 109:61a2ac1241b3

* Make a single base Thread class for RT and non-RT threads * Pull ResizeableBitmap out from the MatrixFile's ColumnBitmap * Reorder SpectrogramLayer::paint somewhat so as to improve cache hit ratio in the FFT file cache
author Chris Cannam
date Mon, 08 May 2006 16:44:47 +0000
parents
children 85bf384db35f
comparison
equal deleted inserted replaced
108:0c19e50bad7c 109:61a2ac1241b3
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 Sonic Visualiser
5 An audio file viewer and annotation editor.
6 Centre for Digital Music, Queen Mary, University of London.
7 This file copyright 2006 Chris Cannam.
8
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information.
14 */
15
16 #ifndef _THREAD_H_
17 #define _THREAD_H_
18
19 #include <QThread>
20
21 class Thread : public QThread
22 {
23 Q_OBJECT
24
25 public:
26 enum Type { RTThread, NonRTThread };
27
28 Thread(Type type = NonRTThread, QObject *parent = 0);
29
30 public slots:
31 void start();
32
33 private:
34 Type m_type;
35 };
36
37 #endif