about summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/shared_memory.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/shared_memory.h b/src/common/shared_memory.h
index fe101ea..1798ad1 100644
--- a/src/common/shared_memory.h
+++ b/src/common/shared_memory.h
@@ -14,11 +14,14 @@
  */
 enum Operations { INSERT, DELETE, GET, PRINT };
 
+enum Status { FREE, SENT, PROCESSED};
+
 /**
  * @brief One request constists out of the operation, the arguments and the response.
  */
 struct Request {
     Operations type;
+    Status status = FREE;
     char key[MAX_KEY_SIZE];
     char value[MAX_VALUE_SIZE];
     char response[MAX_VALUE_SIZE];
@@ -38,7 +41,6 @@ struct SharedMemory {
 
     int tail;
     int head;
-    bool full;
 };
 
 /**