#include <qsystemsemaphore.h>
Definition at line 58 of file qsystemsemaphore.h.
Public Types | |
| enum | AccessMode { Open, Create } |
| enum | SystemSemaphoreError { NoError, PermissionDenied, KeyError, AlreadyExists, NotFound, OutOfResources, UnknownError } |
Public Member Functions | |
| QSystemSemaphore (const QString &key, int initialValue=0, AccessMode mode=Open) | |
| ~QSystemSemaphore () | |
| void | setKey (const QString &key, int initialValue=0, AccessMode mode=Open) |
| QString | key () const |
| bool | acquire () |
| bool | release (int n=1) |
| SystemSemaphoreError | error () const |
| QString | errorString () const |
| enum AccessMode |
| Enumerator | |
|---|---|
| Open | |
| Create | |
Definition at line 62 of file qsystemsemaphore.h.
| enum SystemSemaphoreError |
| Enumerator | |
|---|---|
| NoError | |
| PermissionDenied | |
| KeyError | |
| AlreadyExists | |
| NotFound | |
| OutOfResources | |
| UnknownError | |
Definition at line 68 of file qsystemsemaphore.h.
| QSystemSemaphore | ( | const QString & | key, |
| int | initialValue = 0, |
||
| AccessMode | mode = Open |
||
| ) |
| ~QSystemSemaphore | ( | ) |
| void setKey | ( | const QString & | key, |
| int | initialValue = 0, |
||
| AccessMode | mode = Open |
||
| ) |
| QString key | ( | ) | const |
| bool acquire | ( | ) |
| bool release | ( | int | n = 1 | ) |
| SystemSemaphoreError error | ( | ) | const |
| QString errorString | ( | ) | const |