-
Notifications
You must be signed in to change notification settings - Fork 0
/
worker.h
23 lines (21 loc) · 1.58 KB
/
worker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <pthread.h>
#include "list.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <time.h>
#include <string.h>
#include <signal.h>
#include <sys/stat.h>
#include <arpa/inet.h>
#include "network.h"
struct thread_args {
int *stillrunning;
list_t **list;
pthread_mutex_t *loglock;
pthread_mutex_t *condlock;
pthread_cond_t *poolsignal;
};
void *worker_thread(void *v);