PythonQtWrapper_QSystemSemaphore.cpp
39 lines
| 1.2 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QSystemSemaphore.h" | ||
#include <QVariant> | ||||
#include <qsystemsemaphore.h> | ||||
QSystemSemaphore* PythonQtWrapper_QSystemSemaphore::new_QSystemSemaphore(const QString& key, int initialValue, QSystemSemaphore::AccessMode mode) | ||||
{ | ||||
return new QSystemSemaphore(key, initialValue, mode); } | ||||
bool PythonQtWrapper_QSystemSemaphore::acquire(QSystemSemaphore* theWrappedObject) | ||||
{ | ||||
return theWrappedObject->acquire(); | ||||
} | ||||
QSystemSemaphore::SystemSemaphoreError PythonQtWrapper_QSystemSemaphore::error(QSystemSemaphore* theWrappedObject) const | ||||
{ | ||||
return theWrappedObject->error(); | ||||
} | ||||
QString PythonQtWrapper_QSystemSemaphore::errorString(QSystemSemaphore* theWrappedObject) const | ||||
{ | ||||
return theWrappedObject->errorString(); | ||||
} | ||||
QString PythonQtWrapper_QSystemSemaphore::key(QSystemSemaphore* theWrappedObject) const | ||||
{ | ||||
return theWrappedObject->key(); | ||||
} | ||||
bool PythonQtWrapper_QSystemSemaphore::release(QSystemSemaphore* theWrappedObject, int n) | ||||
{ | ||||
return theWrappedObject->release(n); | ||||
} | ||||
void PythonQtWrapper_QSystemSemaphore::setKey(QSystemSemaphore* theWrappedObject, const QString& key, int initialValue, QSystemSemaphore::AccessMode mode) | ||||
{ | ||||
theWrappedObject->setKey(key, initialValue, mode); | ||||
} | ||||