|
|
#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();
|
|
|
}
|
|
|
|
|
|
|