Public Types | Public Member Functions

QSystemSemaphore Class Reference

Search for all occurrences

Detailed Description

Definition at line 58 of file qsystemsemaphore.h.

#include <qsystemsemaphore.h>

List of all members.

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

Member Enumeration Documentation

enum AccessMode

Constructor & Destructor Documentation

QSystemSemaphore ( const QString key,
int  initialValue = 0,
AccessMode  mode = Open 
)

Member Function Documentation

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

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

QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore
QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore QSystemSemaphore