QMutex Class Reference

QMutex Class Reference

#include <qmutex.h>

Class Description

Definition at line 60 of file qmutex.h.

Public Types

enum  RecursionMode { NonRecursive, Recursive }
 

Public Member Functions

 QMutex (RecursionMode mode=NonRecursive)
 
 ~QMutex ()
 
void lock ()
 
void lockInline ()
 
bool tryLock ()
 
bool tryLock (int timeout)
 
bool tryLockInline ()
 
void unlock ()
 
void unlockInline ()
 

Friends

class QWaitCondition
 
class QWaitConditionPrivate
 

Member Enumeration Documentation

Enumerator
NonRecursive 
Recursive 

Definition at line 66 of file qmutex.h.

Constructor & Destructor Documentation

QMutex ( RecursionMode  mode = NonRecursive)
explicit
~QMutex ( )

Member Function Documentation

void lock ( )
void lockInline ( )
inline

Definition at line 198 of file qmutex.h.

198 { lock(); }
void lock()
bool tryLock ( )
bool tryLock ( int  timeout)
bool tryLockInline ( )
inline

Definition at line 197 of file qmutex.h.

197 { return tryLock(); }
bool tryLock()
void unlock ( )
void unlockInline ( )
inline

Definition at line 196 of file qmutex.h.

196 { unlock(); }
void unlock()

Friends And Related Function Documentation

friend class QWaitCondition
friend

Definition at line 62 of file qmutex.h.

friend class QWaitConditionPrivate
friend

Definition at line 63 of file qmutex.h.


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