You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
761 B
C++
35 lines
761 B
C++
/******************************************************************************
|
|
Copyright(C):2015~2018 hzleaper
|
|
FileName:baseClass.h
|
|
Author:zhikun wu
|
|
Email:zk.wu@hzleaper.com
|
|
Tools:vs2010 pc on company
|
|
Created:2015/04/08
|
|
History:8:4:2015 13:13
|
|
*******************************************************************************/
|
|
#ifndef __BASE_CLASS_H_20150408
|
|
#define __BASE_CLASS_H_20150408
|
|
|
|
//#include "baseDefine.h"
|
|
//#include "ZkImage.h"
|
|
#include <QtCore/QAtomicInt>
|
|
namespace QZK {
|
|
class QAtomicIntAdder{
|
|
public:
|
|
QAtomicIntAdder(QAtomicInt& ai)
|
|
: m_ai(ai) {
|
|
++m_ai;
|
|
}
|
|
~QAtomicIntAdder() {
|
|
--m_ai;
|
|
}
|
|
private:
|
|
QAtomicInt& m_ai;
|
|
};
|
|
};
|
|
|
|
namespace CZK {
|
|
|
|
}
|
|
|
|
#endif |