summaryrefslogtreecommitdiffstats
path: root/src/global_statistics.c
blob: e2852962a44507a30a9e57222e38ede8d0d3631a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "common.h"

struct global_statistics global_statistics = { 0, 0ULL, 0ULL, 0ULL, 0ULL, 0ULL, 0ULL};

pthread_mutex_t global_statistics_mutex = PTHREAD_MUTEX_INITIALIZER;

void global_statistics_lock(void) {
	pthread_mutex_lock(&global_statistics_mutex);
}

void global_statistics_unlock(void) {
	pthread_mutex_unlock(&global_statistics_mutex);
}