diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-02 20:01:03 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-02 20:01:03 +0200 |
commit | 32bf8aea8f3a46ee6c2808cd2369a7558b7b6bc7 (patch) | |
tree | fcbdc048f48642c033d2c61bd9ca98ab1d02d56d /src/mds-registry/globals.h | |
parent | m (diff) | |
download | mds-32bf8aea8f3a46ee6c2808cd2369a7558b7b6bc7.tar.gz mds-32bf8aea8f3a46ee6c2808cd2369a7558b7b6bc7.tar.bz2 mds-32bf8aea8f3a46ee6c2808cd2369a7558b7b6bc7.tar.xz |
misc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-registry/globals.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/mds-registry/globals.h b/src/mds-registry/globals.h index 9c4b42f..dcbf91d 100644 --- a/src/mds-registry/globals.h +++ b/src/mds-registry/globals.h @@ -21,6 +21,7 @@ #include <libmdsserver/mds-message.h> #include <libmdsserver/hash-table.h> +#include <libmdsserver/linked-list.h> #include <stdint.h> #include <stddef.h> @@ -62,19 +63,29 @@ extern char* send_buffer; extern size_t send_buffer_size; /** - * General mutex + * Used to temporarily store the old value when reallocating heap-allocations */ -extern pthread_mutex_t reg_mutex; +extern char* old; /** - * General condition + * The number of running slaves */ -extern pthread_cond_t reg_cond; +extern size_t running_slaves; /** - * Used to temporarily store the old value when reallocating heap-allocations + * List of running slaves */ -extern char* old; +extern linked_list_t slave_list; /* TODO (un)marshal */ + +/** + * Mutex for slave data + */ +extern pthread_mutex_t slave_mutex; + +/** + * Condition for slave data + */ +extern pthread_cond_t slave_cond; #endif |