mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-04 04:44:28 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user