#ifndef PYTHONQTWRAPPER_QTHREADPOOL_H #define PYTHONQTWRAPPER_QTHREADPOOL_H #include #include #include #include #include #include #include #include #include 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