mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
46 lines
1.4 KiB
C
46 lines
1.4 KiB
C
|
#ifndef GEN_QWAITCONDITION_H
|
||
|
#define 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);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} /* extern C */
|
||
|
#endif
|
||
|
|
||
|
#endif
|