PythonQtWrapper_QSemaphore.h
25 lines
| 719 B
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QSEMAPHORE_H | ||
#define PYTHONQTWRAPPER_QSEMAPHORE_H | ||||
#include <qsemaphore.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qsemaphore.h> | ||||
class PythonQtWrapper_QSemaphore : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QSemaphore* new_QSemaphore(int n = 0); | ||||
void delete_QSemaphore(QSemaphore* obj) { delete obj; } | ||||
int available(QSemaphore* theWrappedObject) const; | ||||
florianlink
|
r24 | void acquire(QSemaphore* theWrappedObject, int n = 1); | ||
florianlink
|
r13 | bool tryAcquire(QSemaphore* theWrappedObject, int n = 1); | ||
florianlink
|
r28 | bool tryAcquire(QSemaphore* theWrappedObject, int n, int timeout); | ||
void release(QSemaphore* theWrappedObject, int n = 1); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QSEMAPHORE_H | ||||