miqt/qt/gen_qthreadpool.h

66 lines
2.3 KiB
C++

#ifndef GEN_QTHREADPOOL_H
#define GEN_QTHREADPOOL_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "binding.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);
struct miqt_string* QThreadPool_TrUtf8(const char* s);
QThreadPool* QThreadPool_GlobalInstance();
void QThreadPool_Start(QThreadPool* self, QRunnable* runnable);
bool QThreadPool_TryStart(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_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);
void QThreadPool_Cancel(QThreadPool* self, QRunnable* runnable);
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);
struct miqt_string* QThreadPool_TrUtf82(const char* s, const char* c);
struct miqt_string* QThreadPool_TrUtf83(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