about summary refs log tree commit diff stats
path: root/src/common/shared_memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/shared_memory.h')
-rw-r--r--src/common/shared_memory.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/shared_memory.h b/src/common/shared_memory.h
index fe101ea..465e79f 100644
--- a/src/common/shared_memory.h
+++ b/src/common/shared_memory.h
@@ -15,10 +15,16 @@
 enum Operations { INSERT, DELETE, GET, PRINT };
 
 /**
+ * @brief Possible statuses of a request.
+ */
+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 +44,6 @@ struct SharedMemory {
 
     int tail;
     int head;
-    bool full;
 };
 
 /**