This commit is contained in:
2026-03-25 01:27:39 +01:00
parent eb4e15c66b
commit 8fe7e726a4
26 changed files with 1896 additions and 517 deletions

View File

@@ -2,10 +2,7 @@
#define SHMQUEUE_H
#include "shm.h"
#include <QString>
#define COMMAND_SLOT 1
#define EVENT_SLOT 2
#include <string>
typedef struct __ShmQueueItem__
{
@@ -40,8 +37,9 @@ public:
int depth();
public:
bool dequeue(int &cmd, QString &json_data, bool wait = false);
void enqueue(int cmd, const QString &json_data);
bool dequeue(int &cmd, std::string &json_data, bool wait = false);
void enqueue(int cmd, const std::string &json_data);
void enqueue(int cmd);
public:
ShmQueue(Shm *shm, ShmSlot slot, bool owner);