41 #ifndef QDBUSTHREADDEBUG_P_H 42 #define QDBUSTHREADDEBUG_P_H 55 #include <QtCore/qglobal.h> 59 #if !defined(QDBUS_THREAD_DEBUG) && defined(QT_BUILD_INTERNAL) 60 # define QDBUS_THREAD_DEBUG 1 63 #if QDBUS_THREAD_DEBUG 130 #if QDBUS_THREAD_DEBUG 132 {
if (qdbusThreadDebug) qdbusThreadDebug(action, condition, ptr); }
146 self->lock.lockForRead();
166 self->lock.lockForWrite();
185 :
self(s), mutex(m), action(a)
214 #if QDBUS_THREAD_DEBUG 215 # define SEM_ACQUIRE(action, sem) \ 217 QDBusLockerBase::reportThreadAction(action, QDBusLockerBase::BeforeAcquire, this); \ 219 QDBusLockerBase::reportThreadAction(action, QDBusLockerBase::AfterAcquire, this); \ 222 # define SEM_RELEASE(action, sem) \ 224 QDBusLockerBase::reportThreadAction(action, QDBusLockerBase::BeforeRelease, that); \ 226 QDBusLockerBase::reportThreadAction(action, QDBusLockerBase::AfterRelease, that); \ 230 # define SEM_ACQUIRE(action, sem) sem.acquire() 231 # define SEM_RELEASE(action, sem) sem.release()
QDBusWatchAndTimeoutLocker(ThreadAction a, QDBusConnectionPrivate *s)
#define QT_END_NAMESPACE
This macro expands to.
void lock()
Locks the mutex.
The QMutex class provides access serialization between threads.
long ASN1_INTEGER_get ASN1_INTEGER * a
QDBusReadLocker(ThreadAction a, QDBusConnectionPrivate *s)
QDBusMutexLocker(ThreadAction a, QDBusConnectionPrivate *s, QMutex *m)
QDBusWriteLocker(ThreadAction a, QDBusConnectionPrivate *s)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDBusDispatchLocker(ThreadAction a, QDBusConnectionPrivate *s)
const T * ptr(const T &t)
void unlock()
Unlocks the mutex.
static void reportThreadAction(int, int, QDBusConnectionPrivate *)