Added server status
This commit is contained in:
16
lib/utils/serverStatus.h
Normal file
16
lib/utils/serverStatus.h
Normal 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 */
|
||||
Reference in New Issue
Block a user