]> arthur.barton.de Git - netdata.git/blob - src/global_statistics.c
Merge remote-tracking branch 'upstream/master' into health
[netdata.git] / src / global_statistics.c
1 #include "common.h"
2
3 struct global_statistics global_statistics = { 0, 0ULL, 0ULL, 0ULL, 0ULL, 0ULL, 0ULL};
4
5 pthread_mutex_t global_statistics_mutex = PTHREAD_MUTEX_INITIALIZER;
6
7 void global_statistics_lock(void) {
8         pthread_mutex_lock(&global_statistics_mutex);
9 }
10
11 void global_statistics_unlock(void) {
12         pthread_mutex_unlock(&global_statistics_mutex);
13 }