show memsink has_client in the /state

This commit is contained in:
Devaev Maxim
2021-04-08 08:42:53 +03:00
parent 0eb0370bd3
commit 92ff097d7e
4 changed files with 36 additions and 7 deletions

View File

@@ -24,6 +24,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <stdatomic.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
@@ -51,7 +52,7 @@ typedef struct {
int fd;
memsink_shared_s *mem;
uint64_t last_id;
bool has_clients; // Only for server
atomic_bool has_clients; // Only for server
} memsink_s;