miqt/qt6/gen_qwaitcondition.h

47 lines
1.5 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT6_GEN_QWAITCONDITION_H
#define MIQT_QT6_GEN_QWAITCONDITION_H
2024-10-20 05:21:03 +00:00
#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 QDeadlineTimer;
class QMutex;
class QReadWriteLock;
class QWaitCondition;
#else
typedef struct QDeadlineTimer QDeadlineTimer;
typedef struct QMutex QMutex;
typedef struct QReadWriteLock QReadWriteLock;
typedef struct QWaitCondition QWaitCondition;
#endif
2024-12-07 04:15:57 +00:00
QWaitCondition* QWaitCondition_new();
2024-10-20 05:21:03 +00:00
bool QWaitCondition_Wait(QWaitCondition* self, QMutex* lockedMutex);
bool QWaitCondition_Wait2(QWaitCondition* self, QMutex* lockedMutex, unsigned long time);
bool QWaitCondition_WaitWithLockedReadWriteLock(QWaitCondition* self, QReadWriteLock* lockedReadWriteLock);
bool QWaitCondition_Wait3(QWaitCondition* self, QReadWriteLock* lockedReadWriteLock, unsigned long time);
void QWaitCondition_WakeOne(QWaitCondition* self);
void QWaitCondition_WakeAll(QWaitCondition* self);
void QWaitCondition_NotifyOne(QWaitCondition* self);
void QWaitCondition_NotifyAll(QWaitCondition* self);
bool QWaitCondition_Wait22(QWaitCondition* self, QMutex* lockedMutex, QDeadlineTimer* deadline);
bool QWaitCondition_Wait23(QWaitCondition* self, QReadWriteLock* lockedReadWriteLock, QDeadlineTimer* deadline);
2024-11-19 06:29:06 +00:00
void QWaitCondition_Delete(QWaitCondition* self, bool isSubclass);
2024-10-20 05:21:03 +00:00
#ifdef __cplusplus
} /* extern C */
#endif
#endif