PythonQtWrapper_QReadWriteLock.h
29 lines
| 1.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QREADWRITELOCK_H | ||
#define PYTHONQTWRAPPER_QREADWRITELOCK_H | ||||
#include <qreadwritelock.h> | ||||
#include <QObject> | ||||
#include <QVariant> | ||||
#include <qreadwritelock.h> | ||||
class PythonQtWrapper_QReadWriteLock : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(RecursionMode ) | ||||
enum RecursionMode{ | ||||
NonRecursive = QReadWriteLock::NonRecursive, Recursive = QReadWriteLock::Recursive}; | ||||
public slots: | ||||
QReadWriteLock* new_QReadWriteLock(); | ||||
QReadWriteLock* new_QReadWriteLock(QReadWriteLock::RecursionMode recursionMode); | ||||
void delete_QReadWriteLock(QReadWriteLock* obj) { delete obj; } | ||||
void lockForRead(QReadWriteLock* theWrappedObject); | ||||
void lockForWrite(QReadWriteLock* theWrappedObject); | ||||
bool tryLockForRead(QReadWriteLock* theWrappedObject); | ||||
bool tryLockForRead(QReadWriteLock* theWrappedObject, int timeout); | ||||
bool tryLockForWrite(QReadWriteLock* theWrappedObject); | ||||
bool tryLockForWrite(QReadWriteLock* theWrappedObject, int timeout); | ||||
void unlock(QReadWriteLock* theWrappedObject); | ||||
}; | ||||
#endif // PYTHONQTWRAPPER_QREADWRITELOCK_H | ||||