mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
47 lines
1.5 KiB
C++
47 lines
1.5 KiB
C++
#pragma once
|
|
#ifndef MIQT_QT6_GEN_QWAITCONDITION_H
|
|
#define MIQT_QT6_GEN_QWAITCONDITION_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 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
|
|
|
|
QWaitCondition* QWaitCondition_new();
|
|
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);
|
|
void QWaitCondition_Delete(QWaitCondition* self, bool isSubclass);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|