PythonQtWrapper_QSemaphore.cpp
37 lines
| 935 B
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QSemaphore.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qsemaphore.h> | ||||
QSemaphore* PythonQtWrapper_QSemaphore::new_QSemaphore(int n) | ||||
{ | ||||
return new QSemaphore(n); } | ||||
florianlink
|
r73 | bool PythonQtWrapper_QSemaphore::tryAcquire(QSemaphore* theWrappedObject, int n) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->tryAcquire(n)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSemaphore::release(QSemaphore* theWrappedObject, int n) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->release(n)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QSemaphore::available(QSemaphore* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->available()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QSemaphore::tryAcquire(QSemaphore* theWrappedObject, int n, int timeout) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->tryAcquire(n, timeout)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSemaphore::acquire(QSemaphore* theWrappedObject, int n) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->acquire(n)); | ||
florianlink
|
r13 | } | ||