aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-registry/globals.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-registry/globals.c27
1 files changed, 21 insertions, 6 deletions
diff --git a/src/mds-registry/globals.c b/src/mds-registry/globals.c
index 981cad1..e275eb7 100644
--- a/src/mds-registry/globals.c
+++ b/src/mds-registry/globals.c
@@ -50,17 +50,32 @@ char* send_buffer = NULL;
size_t send_buffer_size = 0;
/**
- * General mutex
+ * Used to temporarily store the old value when reallocating heap-allocations
*/
-pthread_mutex_t reg_mutex;
+char* old;
/**
- * General condition
+ * The master thread
*/
-pthread_cond_t reg_cond;
+pthread_t master_thread;
/**
- * Used to temporarily store the old value when reallocating heap-allocations
+ * The number of running slaves
*/
-char* old;
+size_t running_slaves = 0;
+
+/**
+ * List of running slaves
+ */
+linked_list_t slave_list;
+
+/**
+ * Mutex for slave data
+ */
+pthread_mutex_t slave_mutex;
+
+/**
+ * Condition for slave data
+ */
+pthread_cond_t slave_cond;