miqt/qt6/gen_qmutex.h

52 lines
1.4 KiB
C++

#pragma once
#ifndef MIQT_QT6_GEN_QMUTEX_H
#define MIQT_QT6_GEN_QMUTEX_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 QBasicMutex;
class QMutex;
class QRecursiveMutex;
#else
typedef struct QBasicMutex QBasicMutex;
typedef struct QMutex QMutex;
typedef struct QRecursiveMutex QRecursiveMutex;
#endif
void QBasicMutex_new(QBasicMutex** outptr_QBasicMutex);
void QBasicMutex_Lock(QBasicMutex* self);
void QBasicMutex_Unlock(QBasicMutex* self);
bool QBasicMutex_TryLock(QBasicMutex* self);
bool QBasicMutex_TryLock2(QBasicMutex* self);
void QBasicMutex_Delete(QBasicMutex* self, bool isSubclass);
void QMutex_new(QMutex** outptr_QMutex, QBasicMutex** outptr_QBasicMutex);
bool QMutex_TryLock(QMutex* self);
bool QMutex_TryLockWithTimeout(QMutex* self, int timeout);
void QMutex_Delete(QMutex* self, bool isSubclass);
void QRecursiveMutex_new(QRecursiveMutex** outptr_QRecursiveMutex);
void QRecursiveMutex_Lock(QRecursiveMutex* self);
bool QRecursiveMutex_TryLock(QRecursiveMutex* self);
void QRecursiveMutex_Unlock(QRecursiveMutex* self);
bool QRecursiveMutex_TryLock2(QRecursiveMutex* self);
bool QRecursiveMutex_TryLock1(QRecursiveMutex* self, int timeout);
void QRecursiveMutex_Delete(QRecursiveMutex* self, bool isSubclass);
#ifdef __cplusplus
} /* extern C */
#endif
#endif