#ifndef GEN_QTHREADPOOL_H #define GEN_QTHREADPOOL_H #include #include #include #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include "../libmiqt/libmiqt.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus class QMetaObject; class QObject; class QRunnable; class QThread; class QThreadPool; #else typedef struct QMetaObject QMetaObject; typedef struct QObject QObject; typedef struct QRunnable QRunnable; typedef struct QThread QThread; typedef struct QThreadPool QThreadPool; #endif QThreadPool* QThreadPool_new(); QThreadPool* QThreadPool_new2(QObject* parent); QMetaObject* QThreadPool_MetaObject(const QThreadPool* self); void* QThreadPool_Metacast(QThreadPool* self, const char* param1); struct miqt_string QThreadPool_Tr(const char* s); QThreadPool* QThreadPool_GlobalInstance(); void QThreadPool_Start(QThreadPool* self, QRunnable* runnable); bool QThreadPool_TryStart(QThreadPool* self, QRunnable* runnable); void QThreadPool_StartOnReservedThread(QThreadPool* self, QRunnable* runnable); int QThreadPool_ExpiryTimeout(const QThreadPool* self); void QThreadPool_SetExpiryTimeout(QThreadPool* self, int expiryTimeout); int QThreadPool_MaxThreadCount(const QThreadPool* self); void QThreadPool_SetMaxThreadCount(QThreadPool* self, int maxThreadCount); int QThreadPool_ActiveThreadCount(const QThreadPool* self); void QThreadPool_SetStackSize(QThreadPool* self, unsigned int stackSize); unsigned int QThreadPool_StackSize(const QThreadPool* self); void QThreadPool_SetThreadPriority(QThreadPool* self, int priority); int QThreadPool_ThreadPriority(const QThreadPool* self); void QThreadPool_ReserveThread(QThreadPool* self); void QThreadPool_ReleaseThread(QThreadPool* self); bool QThreadPool_WaitForDone(QThreadPool* self); void QThreadPool_Clear(QThreadPool* self); bool QThreadPool_Contains(const QThreadPool* self, QThread* thread); bool QThreadPool_TryTake(QThreadPool* self, QRunnable* runnable); struct miqt_string QThreadPool_Tr2(const char* s, const char* c); struct miqt_string QThreadPool_Tr3(const char* s, const char* c, int n); void QThreadPool_Start2(QThreadPool* self, QRunnable* runnable, int priority); bool QThreadPool_WaitForDone1(QThreadPool* self, int msecs); void QThreadPool_Delete(QThreadPool* self); #ifdef __cplusplus } /* extern C */ #endif #endif