host: fix global declarations

pull/4537/head
Victor Julien 6 years ago
parent 29780d6164
commit 0a006d2258

@ -45,8 +45,15 @@
static Host *HostGetUsedHost(void);
/** host hash table */
HostHashRow *host_hash;
/** queue with spare hosts */
static HostQueue host_spare_q;
HostConfig host_config;
SC_ATOMIC_DECLARE(uint64_t,host_memuse);
SC_ATOMIC_DECLARE(uint32_t,host_counter);
SC_ATOMIC_DECLARE(uint32_t,host_prune_idx);
/** size of the host object. Maybe updated in HostInitConfig to include
* the storage APIs additions. */

@ -87,7 +87,7 @@ typedef struct HostHashRow_ {
} __attribute__((aligned(CLS))) HostHashRow;
/** host hash table */
HostHashRow *host_hash;
extern HostHashRow *host_hash;
#define HOST_VERBOSE 0
#define HOST_QUIET 1
@ -128,10 +128,10 @@ typedef struct HostConfig_ {
} \
} while (0)
HostConfig host_config;
SC_ATOMIC_DECLARE(uint64_t,host_memuse);
SC_ATOMIC_DECLARE(uint32_t,host_counter);
SC_ATOMIC_DECLARE(uint32_t,host_prune_idx);
extern HostConfig host_config;
SC_ATOMIC_EXTERN(uint64_t,host_memuse);
SC_ATOMIC_EXTERN(uint32_t,host_counter);
SC_ATOMIC_EXTERN(uint32_t,host_prune_idx);
void HostInitConfig(char quiet);
void HostShutdown(void);

Loading…
Cancel
Save