mirror of
https://github.com/mappu/miqt.git
synced 2025-02-01 19:10:21 +00:00
89 lines
3.6 KiB
C++
89 lines
3.6 KiB
C++
#pragma once
|
|
#ifndef MIQT_QT6_GEN_QTHREADPOOL_H
|
|
#define MIQT_QT6_GEN_QTHREADPOOL_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#include "../libmiqt/libmiqt.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QChildEvent;
|
|
class QEvent;
|
|
class QMetaMethod;
|
|
class QMetaObject;
|
|
class QObject;
|
|
class QRunnable;
|
|
class QThread;
|
|
class QThreadPool;
|
|
class QTimerEvent;
|
|
#else
|
|
typedef struct QChildEvent QChildEvent;
|
|
typedef struct QEvent QEvent;
|
|
typedef struct QMetaMethod QMetaMethod;
|
|
typedef struct QMetaObject QMetaObject;
|
|
typedef struct QObject QObject;
|
|
typedef struct QRunnable QRunnable;
|
|
typedef struct QThread QThread;
|
|
typedef struct QThreadPool QThreadPool;
|
|
typedef struct QTimerEvent QTimerEvent;
|
|
#endif
|
|
|
|
QThreadPool* QThreadPool_new();
|
|
QThreadPool* QThreadPool_new2(QObject* parent);
|
|
void QThreadPool_virtbase(QThreadPool* src, QObject** outptr_QObject);
|
|
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);
|
|
bool QThreadPool_override_virtual_event(void* self, intptr_t slot);
|
|
bool QThreadPool_virtualbase_event(void* self, QEvent* event);
|
|
bool QThreadPool_override_virtual_eventFilter(void* self, intptr_t slot);
|
|
bool QThreadPool_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event);
|
|
bool QThreadPool_override_virtual_timerEvent(void* self, intptr_t slot);
|
|
void QThreadPool_virtualbase_timerEvent(void* self, QTimerEvent* event);
|
|
bool QThreadPool_override_virtual_childEvent(void* self, intptr_t slot);
|
|
void QThreadPool_virtualbase_childEvent(void* self, QChildEvent* event);
|
|
bool QThreadPool_override_virtual_customEvent(void* self, intptr_t slot);
|
|
void QThreadPool_virtualbase_customEvent(void* self, QEvent* event);
|
|
bool QThreadPool_override_virtual_connectNotify(void* self, intptr_t slot);
|
|
void QThreadPool_virtualbase_connectNotify(void* self, QMetaMethod* signal);
|
|
bool QThreadPool_override_virtual_disconnectNotify(void* self, intptr_t slot);
|
|
void QThreadPool_virtualbase_disconnectNotify(void* self, QMetaMethod* signal);
|
|
void QThreadPool_delete(QThreadPool* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|