Definition at line 58 of file qsystemsemaphore.h.
#include <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 |
Definition at line 62 of file qsystemsemaphore.h.
| enum SystemSemaphoreError |
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 |