]> arthur.barton.de Git - netdata.git/blob - src/global_statistics.c
splitted netdata to multiple source files
[netdata.git] / src / global_statistics.c
1 #include <pthread.h>
2
3 #include "global_statistics.h"
4
5 struct global_statistics global_statistics = { 0ULL, 0ULL, 0ULL, 0ULL };
6
7 pthread_mutex_t global_statistics_mutex = PTHREAD_MUTEX_INITIALIZER;
8
9 void global_statistics_lock(void) {
10         pthread_mutex_lock(&global_statistics_mutex);
11 }
12
13 void global_statistics_unlock(void) {
14         pthread_mutex_unlock(&global_statistics_mutex);
15 }