##// END OF EJS Templates
renamed guards...
renamed guards git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@53 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r17:4a5dbf143fd4
Show More
PythonQtWrapper_QThreadPool.h
34 lines | 1.2 KiB | text/x-c | CLexer
#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