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