Compleated main logic
This commit is contained in:
@ -4,12 +4,15 @@
|
||||
|
||||
#include <apiFile.h>
|
||||
#include <fileQueue.h>
|
||||
#include <taglialegna.h>
|
||||
|
||||
// struttura dati che contiene gli argomenti da passare ai worker threads
|
||||
typedef struct struct_thread {
|
||||
long *args;
|
||||
int connfd;
|
||||
int *quit;
|
||||
int request_pipe;
|
||||
queueT *q; // puntatore alla queue dei file
|
||||
// logT *logFileT; // puntatore alla struct del file di log
|
||||
taglia_t *taglia; // puntatore alla struct del file di log
|
||||
threadpool_t *pool; // puntatore alla threadpool
|
||||
pthread_mutex_t *lock;
|
||||
waitingT **waiting; // puntatore ai client in attesa di ottenere la lock su un file
|
||||
|
||||
Reference in New Issue
Block a user