##// END OF EJS Templates
fixed bad reference counting and borrowed references...
fixed bad reference counting and borrowed references git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@55 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r19:4f416979f8bf
Show More
PythonQtWrapper_QMutex.cpp
29 lines | 598 B | text/x-c | CppLexer
#include "PythonQtWrapper_QMutex.h"
#include <QVariant>
#include <qmutex.h>
QMutex* PythonQtWrapper_QMutex::new_QMutex(QMutex::RecursionMode mode)
{
return new QMutex(mode); }
void PythonQtWrapper_QMutex::lock(QMutex* theWrappedObject)
{
theWrappedObject->lock();
}
bool PythonQtWrapper_QMutex::tryLock(QMutex* theWrappedObject)
{
return theWrappedObject->tryLock();
}
bool PythonQtWrapper_QMutex::tryLock(QMutex* theWrappedObject, int timeout)
{
return theWrappedObject->tryLock(timeout);
}
void PythonQtWrapper_QMutex::unlock(QMutex* theWrappedObject)
{
theWrappedObject->unlock();
}