Mercurial > hg > svcore
comparison data/model/EditableDenseThreeDimensionalModel.h @ 536:beb51f558e9c
* Change QMutex in Editable DTDM to a read/write lock
author | Chris Cannam |
---|---|
date | Mon, 26 Jan 2009 15:18:32 +0000 |
parents | 3ccf48fb81d6 |
children | dd97f7b3d120 |
comparison
equal
deleted
inserted
replaced
535:3ccf48fb81d6 | 536:beb51f558e9c |
---|---|
15 | 15 |
16 #ifndef _EDITABLE_DENSE_THREE_DIMENSIONAL_MODEL_H_ | 16 #ifndef _EDITABLE_DENSE_THREE_DIMENSIONAL_MODEL_H_ |
17 #define _EDITABLE_DENSE_THREE_DIMENSIONAL_MODEL_H_ | 17 #define _EDITABLE_DENSE_THREE_DIMENSIONAL_MODEL_H_ |
18 | 18 |
19 #include "DenseThreeDimensionalModel.h" | 19 #include "DenseThreeDimensionalModel.h" |
20 | |
21 #include <QReadWriteLock> | |
20 | 22 |
21 #include <vector> | 23 #include <vector> |
22 | 24 |
23 class EditableDenseThreeDimensionalModel : public DenseThreeDimensionalModel | 25 class EditableDenseThreeDimensionalModel : public DenseThreeDimensionalModel |
24 { | 26 { |
165 bool m_notifyOnAdd; | 167 bool m_notifyOnAdd; |
166 long m_sinceLastNotifyMin; | 168 long m_sinceLastNotifyMin; |
167 long m_sinceLastNotifyMax; | 169 long m_sinceLastNotifyMax; |
168 int m_completion; | 170 int m_completion; |
169 | 171 |
170 mutable QMutex m_mutex; | 172 mutable QReadWriteLock m_lock; |
171 }; | 173 }; |
172 | 174 |
173 #endif | 175 #endif |