summaryrefslogtreecommitdiff
path: root/qmake/include/private/qmutexpool_p.h
Unidiff
Diffstat (limited to 'qmake/include/private/qmutexpool_p.h') (more/less context) (ignore whitespace changes)
-rw-r--r--qmake/include/private/qmutexpool_p.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/qmake/include/private/qmutexpool_p.h b/qmake/include/private/qmutexpool_p.h
new file mode 100644
index 0000000..3d9fef7
--- a/dev/null
+++ b/qmake/include/private/qmutexpool_p.h
@@ -0,0 +1,39 @@
1#ifndef QMUTEXPOOL_H
2#define QMUTEXPOOL_H
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists for the convenience
9// of QSettings. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14//
15
16#ifdef QT_THREAD_SUPPORT
17
18#include "qmutex.h"
19#include "qmemarray.h"
20
21class QMutexPool
22{
23public:
24 QMutexPool( bool recursive = FALSE, int size = 17 );
25 ~QMutexPool();
26
27 QMutex *get( void *address );
28
29private:
30 QMutex mutex;
31 QMemArray<QMutex*> mutexes;
32 bool recurs;
33};
34
35extern QMutexPool *qt_global_mutexpool;
36
37#endif // QT_THREAD_SUPPORT
38
39#endif // QMUTEXPOOL_H