102 : mutexes(size), recursionMode(recursionMode)
126 return globalMutexPool();
142 if (!
mutexes[index].testAndSetOrdered(0, newMutex))
152 QMutexPool *
const globalInstance = globalMutexPool();
153 if (globalInstance == 0)
155 return globalInstance->
get(address);
160 #endif // QT_NO_THREAD #define QT_END_NAMESPACE
This macro expands to.
The QMutex class provides access serialization between threads.
QMutex::RecursionMode recursionMode
~QMutexPool()
Destructs a QMutexPool.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static QMutexPool * instance()
Returns the global QMutexPool instance.
QMutex * get(const void *address)
Returns a QMutex from the pool.
Q_CORE_EXPORT QMutexPool * qt_global_mutexpool
QVarLengthArray< QAtomicPointer< QMutex >, 131 > mutexes
QMutex * createMutex(int index)
The QMutexPool class provides a pool of QMutex objects.
static QMutex * globalInstanceGet(const void *address)
Returns a QMutex from the global mutex pool.
#define Q_GLOBAL_STATIC_WITH_ARGS(TYPE, NAME, ARGS)
Declares a global static variable with the specified type and name.