##// 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_QThreadPool.cpp
69 lines | 1.8 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QThreadPool.h"
#include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qobject.h>
#include <qrunnable.h>
#include <qthreadpool.h>
QThreadPool* PythonQtWrapper_QThreadPool::new_QThreadPool(QObject* parent)
{
return new QThreadPool(parent); }
int PythonQtWrapper_QThreadPool::activeThreadCount(QThreadPool* theWrappedObject) const
{
return theWrappedObject->activeThreadCount();
}
int PythonQtWrapper_QThreadPool::expiryTimeout(QThreadPool* theWrappedObject) const
{
return theWrappedObject->expiryTimeout();
}
QThreadPool* PythonQtWrapper_QThreadPool::static_QThreadPool_globalInstance()
{
return QThreadPool::globalInstance();
}
int PythonQtWrapper_QThreadPool::maxThreadCount(QThreadPool* theWrappedObject) const
{
return theWrappedObject->maxThreadCount();
}
void PythonQtWrapper_QThreadPool::releaseThread(QThreadPool* theWrappedObject)
{
theWrappedObject->releaseThread();
}
void PythonQtWrapper_QThreadPool::reserveThread(QThreadPool* theWrappedObject)
{
theWrappedObject->reserveThread();
}
void PythonQtWrapper_QThreadPool::setExpiryTimeout(QThreadPool* theWrappedObject, int expiryTimeout)
{
theWrappedObject->setExpiryTimeout(expiryTimeout);
}
void PythonQtWrapper_QThreadPool::setMaxThreadCount(QThreadPool* theWrappedObject, int maxThreadCount)
{
theWrappedObject->setMaxThreadCount(maxThreadCount);
}
void PythonQtWrapper_QThreadPool::start(QThreadPool* theWrappedObject, QRunnable* runnable, int priority)
{
theWrappedObject->start(runnable, priority);
}
bool PythonQtWrapper_QThreadPool::tryStart(QThreadPool* theWrappedObject, QRunnable* runnable)
{
return theWrappedObject->tryStart(runnable);
}
void PythonQtWrapper_QThreadPool::waitForDone(QThreadPool* theWrappedObject)
{
theWrappedObject->waitForDone();
}