Qt 4.8
Public Functions | Public Variables | List of all members
QDBusMutexLocker Struct Reference

#include <qdbusthreaddebug_p.h>

Inheritance diagram for QDBusMutexLocker:
QDBusLockerBase QDBusDispatchLocker QDBusWatchAndTimeoutLocker

Public Functions

 QDBusMutexLocker (ThreadAction a, QDBusConnectionPrivate *s, QMutex *m)
 
 ~QDBusMutexLocker ()
 

Public Variables

ThreadAction action
 
QMutexmutex
 
QDBusConnectionPrivateself
 

Additional Inherited Members

- Public Types inherited from QDBusLockerBase
enum  Condition {
  BeforeLock, AfterLock, BeforeUnlock, AfterUnlock,
  BeforePost, AfterPost, BeforeDeliver, AfterDeliver,
  BeforeAcquire, AfterAcquire, BeforeRelease, AfterRelease
}
 
- Static Public Functions inherited from QDBusLockerBase
static void reportThreadAction (int, int, QDBusConnectionPrivate *)
 

Detailed Description

Definition at line 178 of file qdbusthreaddebug_p.h.

Constructors and Destructors

◆ QDBusMutexLocker()

QDBusMutexLocker::QDBusMutexLocker ( ThreadAction  a,
QDBusConnectionPrivate s,
QMutex m 
)
inline

Definition at line 183 of file qdbusthreaddebug_p.h.

185  : self(s), mutex(m), action(a)
186  {
188  mutex->lock();
190  }
void lock()
Locks the mutex.
Definition: qmutex.cpp:151
long ASN1_INTEGER_get ASN1_INTEGER * a
static void reportThreadAction(int, int, QDBusConnectionPrivate *)

◆ ~QDBusMutexLocker()

QDBusMutexLocker::~QDBusMutexLocker ( )
inline

Definition at line 192 of file qdbusthreaddebug_p.h.

193  {
195  mutex->unlock();
197  }
void unlock()
Unlocks the mutex.
Definition: qmutex.cpp:296
static void reportThreadAction(int, int, QDBusConnectionPrivate *)

Properties

◆ action

ThreadAction QDBusMutexLocker::action

Definition at line 182 of file qdbusthreaddebug_p.h.

◆ mutex

QMutex* QDBusMutexLocker::mutex

Definition at line 181 of file qdbusthreaddebug_p.h.

◆ self

QDBusConnectionPrivate* QDBusMutexLocker::self

Definition at line 180 of file qdbusthreaddebug_p.h.


The documentation for this struct was generated from the following file: