2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QSYSTEMSEMAPHORE_H
|
|
|
|
#define MIQT_QT_GEN_QSYSTEMSEMAPHORE_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QSystemSemaphore;
|
|
|
|
#else
|
|
|
|
typedef struct QSystemSemaphore QSystemSemaphore;
|
|
|
|
#endif
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QSystemSemaphore_new(struct miqt_string key, QSystemSemaphore** outptr_QSystemSemaphore);
|
|
|
|
void QSystemSemaphore_new2(struct miqt_string key, int initialValue, QSystemSemaphore** outptr_QSystemSemaphore);
|
|
|
|
void QSystemSemaphore_new3(struct miqt_string key, int initialValue, int mode, QSystemSemaphore** outptr_QSystemSemaphore);
|
2024-10-18 23:53:33 +00:00
|
|
|
void QSystemSemaphore_SetKey(QSystemSemaphore* self, struct miqt_string key);
|
|
|
|
struct miqt_string QSystemSemaphore_Key(const QSystemSemaphore* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QSystemSemaphore_Acquire(QSystemSemaphore* self);
|
|
|
|
bool QSystemSemaphore_Release(QSystemSemaphore* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QSystemSemaphore_Error(const QSystemSemaphore* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QSystemSemaphore_ErrorString(const QSystemSemaphore* self);
|
|
|
|
void QSystemSemaphore_SetKey2(QSystemSemaphore* self, struct miqt_string key, int initialValue);
|
|
|
|
void QSystemSemaphore_SetKey3(QSystemSemaphore* self, struct miqt_string key, int initialValue, int mode);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QSystemSemaphore_Release1(QSystemSemaphore* self, int n);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QSystemSemaphore_Delete(QSystemSemaphore* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|