47 #ifndef QT_NO_SYSTEMSEMAPHORE 60 DWORD windowsError = GetLastError();
61 if (windowsError == 0)
64 switch (windowsError) {
65 case ERROR_NO_SYSTEM_RESOURCES:
66 case ERROR_NOT_ENOUGH_MEMORY:
70 case ERROR_ACCESS_DENIED:
77 #ifdef QSYSTEMSEMAPHORE_DEBUG 103 #if defined QSYSTEMSEMAPHORE_DEBUG 116 if (0 == ReleaseSemaphore(
semaphore, count, 0)) {
118 #if defined QSYSTEMSEMAPHORE_DEBUG 126 #if defined QSYSTEMSEMAPHORE_DEBUG 138 #endif // QT_NO_SYSTEMSEMAPHORE void setErrorString(const QString &function)
#define QT_END_NAMESPACE
This macro expands to.
The QSystemSemaphore class provides a general counting system semaphore.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
static QString translate(const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr)
Q_CORE_EXPORT void qDebug(const char *,...)
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
bool modifySemaphore(int count)
AccessMode
This enum is used by the constructor and setKey().
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QSystemSemaphore::SystemSemaphoreError error
HANDLE handle(QSystemSemaphore::AccessMode mode=QSystemSemaphore::Open)
QSystemSemaphorePrivate()
const ushort * utf16() const
Returns the QString as a '\0\'-terminated array of unsigned shorts.