Alive thread implemented

This commit is contained in:
2026-04-11 09:50:59 +02:00
parent 8e5381fda2
commit 52aa0cac10
10 changed files with 215 additions and 31 deletions

6
shm.h
View File

@@ -17,8 +17,9 @@ private:
public:
void post();
void wait();
bool wait(int ms);
bool trywait();
void takeOwnership();
public:
ShmSem(const char *n, bool owner);
@@ -52,6 +53,9 @@ public:
public:
void *ref(int place);
public:
void takeOwnership();
public:
void info(int &usage, int &free_depth, int &free_size, int &item_depth, int &item_size, double &usage_factor);