2024-08-25 04:08:24 +00:00
|
|
|
#include <QDeadlineTimer>
|
|
|
|
#include <QMutex>
|
|
|
|
#include <QReadWriteLock>
|
|
|
|
#include <QWaitCondition>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qwaitcondition.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qwaitcondition.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QWaitCondition* QWaitCondition_new() {
|
|
|
|
return new QWaitCondition();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWaitCondition_Wait(QWaitCondition* self, QMutex* lockedMutex) {
|
|
|
|
return self->wait(lockedMutex);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWaitCondition_Wait2(QWaitCondition* self, QMutex* lockedMutex, unsigned long time) {
|
|
|
|
return self->wait(lockedMutex, static_cast<unsigned long>(time));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWaitCondition_WaitWithLockedReadWriteLock(QWaitCondition* self, QReadWriteLock* lockedReadWriteLock) {
|
|
|
|
return self->wait(lockedReadWriteLock);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWaitCondition_Wait3(QWaitCondition* self, QReadWriteLock* lockedReadWriteLock, unsigned long time) {
|
|
|
|
return self->wait(lockedReadWriteLock, static_cast<unsigned long>(time));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWaitCondition_WakeOne(QWaitCondition* self) {
|
|
|
|
self->wakeOne();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWaitCondition_WakeAll(QWaitCondition* self) {
|
|
|
|
self->wakeAll();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWaitCondition_NotifyOne(QWaitCondition* self) {
|
|
|
|
self->notify_one();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWaitCondition_NotifyAll(QWaitCondition* self) {
|
|
|
|
self->notify_all();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWaitCondition_Wait22(QWaitCondition* self, QMutex* lockedMutex, QDeadlineTimer* deadline) {
|
|
|
|
return self->wait(lockedMutex, *deadline);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWaitCondition_Wait23(QWaitCondition* self, QReadWriteLock* lockedReadWriteLock, QDeadlineTimer* deadline) {
|
|
|
|
return self->wait(lockedReadWriteLock, *deadline);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWaitCondition_Delete(QWaitCondition* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|