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