Added server status

This commit is contained in:
elvis
2022-03-12 10:05:58 +01:00
parent d99a19228b
commit b4ca73b8d6
4 changed files with 129 additions and 76 deletions

16
lib/utils/serverStatus.h Normal file
View File

@ -0,0 +1,16 @@
#pragma once
#ifndef _SERVER_STATUS
#define _SERVER_STATUS
typedef struct {
pthread_mutex_t *mtx;
pthread_cond_t *cond;
long max_space_occupied;
long cur_space_occupied;
long max_files;
long cur_files;
char exiting;
} serverStatus;
#endif /* _SERVER_STATUS */