##// 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_QSemaphore.cpp
34 lines | 810 B | text/x-c | CppLexer
#include "PythonQtWrapper_QSemaphore.h"
#include <QVariant>
#include <qsemaphore.h>
QSemaphore* PythonQtWrapper_QSemaphore::new_QSemaphore(int n)
{
return new QSemaphore(n); }
void PythonQtWrapper_QSemaphore::acquire(QSemaphore* theWrappedObject, int n)
{
theWrappedObject->acquire(n);
}
int PythonQtWrapper_QSemaphore::available(QSemaphore* theWrappedObject) const
{
return theWrappedObject->available();
}
void PythonQtWrapper_QSemaphore::release(QSemaphore* theWrappedObject, int n)
{
theWrappedObject->release(n);
}
bool PythonQtWrapper_QSemaphore::tryAcquire(QSemaphore* theWrappedObject, int n)
{
return theWrappedObject->tryAcquire(n);
}
bool PythonQtWrapper_QSemaphore::tryAcquire(QSemaphore* theWrappedObject, int n, int timeout)
{
return theWrappedObject->tryAcquire(n, timeout);
}