author | kergoth <kergoth> | 2002-11-01 00:10:42 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-01 00:10:42 (UTC) |
commit | 5042e3cf0d3514552769e441f5aad590c8eaf967 (patch) (unidiff) | |
tree | 4a5ea45f3519d981a172ab5275bf38c6fa778dec /qmake/include/private/qmutexpool_p.h | |
parent | 108c1c753e74e989cc13923086996791428c9af4 (diff) | |
download | opie-5042e3cf0d3514552769e441f5aad590c8eaf967.zip opie-5042e3cf0d3514552769e441f5aad590c8eaf967.tar.gz opie-5042e3cf0d3514552769e441f5aad590c8eaf967.tar.bz2 |
Adding qmake in preperation for new build system
Diffstat (limited to 'qmake/include/private/qmutexpool_p.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | qmake/include/private/qmutexpool_p.h | 39 |
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 | |||
21 | class QMutexPool | ||
22 | { | ||
23 | public: | ||
24 | QMutexPool( bool recursive = FALSE, int size = 17 ); | ||
25 | ~QMutexPool(); | ||
26 | |||
27 | QMutex *get( void *address ); | ||
28 | |||
29 | private: | ||
30 | QMutex mutex; | ||
31 | QMemArray<QMutex*> mutexes; | ||
32 | bool recurs; | ||
33 | }; | ||
34 | |||
35 | extern QMutexPool *qt_global_mutexpool; | ||
36 | |||
37 | #endif // QT_THREAD_SUPPORT | ||
38 | |||
39 | #endif // QMUTEXPOOL_H | ||