added copy constructor implementation for AtomicInt class - fixes build failure with Qt < 4.4.0, fixed typo

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms/stable-0.4@2074 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2009-02-23 22:32:31 +00:00
parent 640f140ef1
commit 2ff42ac80b
2 changed files with 12 additions and 1 deletions

View File

@@ -4,6 +4,11 @@
* CMakeLists.txt:
made 0.4.3 release
* include/atomic_int.h:
- fixed typo
- added copy constructor implementation for AtomicInt class - fixes
build failure with Qt < 4.4.0
* CMakeLists.txt:
fixed typos

View File

@@ -27,7 +27,7 @@
#include <QtCore/QMutex>
#if QT_VERSION > 0x040400
#if QT_VERSION >= 0x040400
typedef QAtomicInt AtomicInt;
@@ -42,6 +42,12 @@ public:
{
}
inline AtomicInt( const AtomicInt & _copy ) :
m_value( _copy.m_value ),
m_lock()
{
}
inline int fetchAndStoreOrdered( int _newVal )
{
m_lock.lock();