PythonQtWrapper_QThreadPool.h
34 lines
| 1.2 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTHREADPOOL_H | ||
#define PYTHONQTWRAPPER_QTHREADPOOL_H | ||||
#include <qthreadpool.h> | ||||
#include <QObject> | ||||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qrunnable.h> | ||||
#include <qthreadpool.h> | ||||
class PythonQtWrapper_QThreadPool : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QThreadPool* new_QThreadPool(QObject* parent = 0); | ||||
void delete_QThreadPool(QThreadPool* obj) { delete obj; } | ||||
int activeThreadCount(QThreadPool* theWrappedObject) const; | ||||
int expiryTimeout(QThreadPool* theWrappedObject) const; | ||||
QThreadPool* static_QThreadPool_globalInstance(); | ||||
int maxThreadCount(QThreadPool* theWrappedObject) const; | ||||
void releaseThread(QThreadPool* theWrappedObject); | ||||
void reserveThread(QThreadPool* theWrappedObject); | ||||
void setExpiryTimeout(QThreadPool* theWrappedObject, int expiryTimeout); | ||||
void setMaxThreadCount(QThreadPool* theWrappedObject, int maxThreadCount); | ||||
void start(QThreadPool* theWrappedObject, QRunnable* runnable, int priority = 0); | ||||
bool tryStart(QThreadPool* theWrappedObject, QRunnable* runnable); | ||||
void waitForDone(QThreadPool* theWrappedObject); | ||||
}; | ||||
#endif // PYTHONQTWRAPPER_QTHREADPOOL_H | ||||