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.
28 lines
679 B
C++
28 lines
679 B
C++
/******************************************************************************
|
|
Copyright(C):2015~2018 hzleaper
|
|
FileName:QZkMutexHash.h
|
|
Author:zhikun wu
|
|
Email:zk.wu@hzleaper.com
|
|
Tools:vs2010 pc on company
|
|
Created:2015/05/11
|
|
History:11:5:2015 17:20
|
|
*******************************************************************************/
|
|
#ifndef __Q_ZK_MUTEX_HASH_H
|
|
#define __Q_ZK_MUTEX_HAST_H
|
|
|
|
#include <QtCore/QHash>
|
|
#include <QtCore/QMutexLocker>
|
|
|
|
template<typename tKey, typename tValue>
|
|
class QZkMutexHash : public QHash<tKey, tValue>
|
|
{
|
|
public:
|
|
QZkMutexHash()
|
|
: m_mutex(QMutex::Recursive) {
|
|
}
|
|
virtual ~QZkMutexHash() {}
|
|
private:
|
|
QMutex m_mutex;
|
|
};
|
|
|
|
#endif |