PythonQtWrapper_QMutex.cpp
32 lines
| 718 B
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QMutex.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qmutex.h> | ||||
QMutex* PythonQtWrapper_QMutex::new_QMutex(QMutex::RecursionMode mode) | ||||
{ | ||||
return new QMutex(mode); } | ||||
florianlink
|
r24 | bool PythonQtWrapper_QMutex::tryLock(QMutex* theWrappedObject, int timeout) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->tryLock(timeout)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | void PythonQtWrapper_QMutex::unlock(QMutex* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->unlock()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | bool PythonQtWrapper_QMutex::tryLock(QMutex* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->tryLock()); | ||
} | ||||
void PythonQtWrapper_QMutex::lock(QMutex* theWrappedObject) | ||||
{ | ||||
( theWrappedObject->lock()); | ||||
florianlink
|
r13 | } | ||