]> arthur.barton.de Git - netdata.git/blob - src/global_statistics.c
build: migrate to autotools
[netdata.git] / src / global_statistics.c
1 #ifdef HAVE_CONFIG_H
2 #include <config.h>
3 #endif
4 #include <pthread.h>
5
6 #include "common.h"
7 #include "global_statistics.h"
8
9 struct global_statistics global_statistics = { 0ULL, 0ULL, 0ULL, 0ULL };
10
11 pthread_mutex_t global_statistics_mutex = PTHREAD_MUTEX_INITIALIZER;
12
13 void global_statistics_lock(void) {
14         pthread_mutex_lock(&global_statistics_mutex);
15 }
16
17 void global_statistics_unlock(void) {
18         pthread_mutex_unlock(&global_statistics_mutex);
19 }