2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QTHREADPOOL_H
|
|
|
|
#define MIQT_QT_GEN_QTHREADPOOL_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2024-11-19 06:29:06 +00:00
|
|
|
class QChildEvent;
|
|
|
|
class QEvent;
|
|
|
|
class QMetaMethod;
|
2024-08-25 04:08:24 +00:00
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QRunnable;
|
|
|
|
class QThread;
|
|
|
|
class QThreadPool;
|
2024-11-19 06:29:06 +00:00
|
|
|
class QTimerEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
#else
|
2024-11-19 06:29:06 +00:00
|
|
|
typedef struct QChildEvent QChildEvent;
|
|
|
|
typedef struct QEvent QEvent;
|
|
|
|
typedef struct QMetaMethod QMetaMethod;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QRunnable QRunnable;
|
|
|
|
typedef struct QThread QThread;
|
|
|
|
typedef struct QThreadPool QThreadPool;
|
2024-11-19 06:29:06 +00:00
|
|
|
typedef struct QTimerEvent QTimerEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
#endif
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QThreadPool* QThreadPool_new();
|
|
|
|
QThreadPool* QThreadPool_new2(QObject* parent);
|
|
|
|
void QThreadPool_virtbase(QThreadPool* src, QObject** outptr_QObject);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QThreadPool_MetaObject(const QThreadPool* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QThreadPool_Metacast(QThreadPool* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QThreadPool_Tr(const char* s);
|
|
|
|
struct miqt_string QThreadPool_TrUtf8(const char* s);
|
2024-08-25 04:08:24 +00:00
|
|
|
QThreadPool* QThreadPool_GlobalInstance();
|
|
|
|
void QThreadPool_Start(QThreadPool* self, QRunnable* runnable);
|
|
|
|
bool QThreadPool_TryStart(QThreadPool* self, QRunnable* runnable);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QThreadPool_ExpiryTimeout(const QThreadPool* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QThreadPool_SetExpiryTimeout(QThreadPool* self, int expiryTimeout);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QThreadPool_MaxThreadCount(const QThreadPool* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QThreadPool_SetMaxThreadCount(QThreadPool* self, int maxThreadCount);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QThreadPool_ActiveThreadCount(const QThreadPool* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QThreadPool_SetStackSize(QThreadPool* self, unsigned int stackSize);
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned int QThreadPool_StackSize(const QThreadPool* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QThreadPool_ReserveThread(QThreadPool* self);
|
|
|
|
void QThreadPool_ReleaseThread(QThreadPool* self);
|
|
|
|
bool QThreadPool_WaitForDone(QThreadPool* self);
|
|
|
|
void QThreadPool_Clear(QThreadPool* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QThreadPool_Contains(const QThreadPool* self, QThread* thread);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QThreadPool_Cancel(QThreadPool* self, QRunnable* runnable);
|
|
|
|
bool QThreadPool_TryTake(QThreadPool* self, QRunnable* runnable);
|
2024-10-18 23:53:33 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QThreadPool_Start2(QThreadPool* self, QRunnable* runnable, int priority);
|
|
|
|
bool QThreadPool_WaitForDone1(QThreadPool* self, int msecs);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QThreadPool_override_virtual_Event(void* self, intptr_t slot);
|
|
|
|
bool QThreadPool_virtualbase_Event(void* self, QEvent* event);
|
|
|
|
void QThreadPool_override_virtual_EventFilter(void* self, intptr_t slot);
|
|
|
|
bool QThreadPool_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event);
|
|
|
|
void QThreadPool_override_virtual_TimerEvent(void* self, intptr_t slot);
|
|
|
|
void QThreadPool_virtualbase_TimerEvent(void* self, QTimerEvent* event);
|
|
|
|
void QThreadPool_override_virtual_ChildEvent(void* self, intptr_t slot);
|
|
|
|
void QThreadPool_virtualbase_ChildEvent(void* self, QChildEvent* event);
|
|
|
|
void QThreadPool_override_virtual_CustomEvent(void* self, intptr_t slot);
|
|
|
|
void QThreadPool_virtualbase_CustomEvent(void* self, QEvent* event);
|
|
|
|
void QThreadPool_override_virtual_ConnectNotify(void* self, intptr_t slot);
|
|
|
|
void QThreadPool_virtualbase_ConnectNotify(void* self, QMetaMethod* signal);
|
|
|
|
void QThreadPool_override_virtual_DisconnectNotify(void* self, intptr_t slot);
|
|
|
|
void QThreadPool_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal);
|
|
|
|
void QThreadPool_Delete(QThreadPool* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|