- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- Class List
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Friends

# QMutex Class Reference

Search for all occurrences

## Detailed Description

Definition at line 58 of file qmutex.h.

`#include <qmutex.h>`

List of all members.

## Public Types
enum | RecursionMode { NonRecursive, Recursive }
## Public Member Functions
| QMutex (RecursionMode mode=NonRecursive)
| ~QMutex ()
void | lock ()
bool | tryLock ()
bool | tryLock (int timeout)
void | unlock ()
## Friends
class | QWaitCondition
class | QWaitConditionPrivate

## Member Enumeration Documentation

enum RecursionMode

Search for all occurrences

Enumerator:

  NonRecursive | Search for all occurrences
  Recursive | Search for all occurrences

Definition at line 64 of file qmutex.h.

    { NonRecursive, Recursive };

## Constructor & Destructor Documentation

QMutex | ( | RecursionMode | mode = `NonRecursive` | ) | `[explicit]`

~QMutex | ( |  | ) |

## Member Function Documentation

void lock | ( |  | ) |

Search for all occurrences

bool tryLock | ( |  | ) |

Search for all occurrences

bool tryLock | ( | int | timeout | ) |

Search for all occurrences

void unlock | ( |  | ) |

Search for all occurrences

## Friends And Related Function Documentation

friend class QWaitCondition `[friend]`

Search for all occurrences

Definition at line 60 of file qmutex.h.

friend class QWaitConditionPrivate `[friend]`

Search for all occurrences

Definition at line 61 of file qmutex.h.

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

- QtCore/qmutex.h

QMutex QMutex QMutex QMutex QMutex QMutex QMutex QMutex QMutex QMutex
QMutex QMutex QMutex QMutex QMutex QMutex QMutex QMutex QMutex QMutex