Files
GTSchoolShit/CS4210/Project 2/common/thread_pool/thread_pool.h
2025-06-07 01:59:34 -04:00

30 lines
478 B
C

#ifndef _THREAD_POOL_H_
#define _THREAD_POOL_H_
#ifdef _WIN32
#include "../pthreads/include/pthread.h"
#else
#include <pthread.h>
#endif
/*
* Variables
*/
pthread_t **consumerList;
pthread_t *producerThread;
/*
* Methods
*/
void addSocket(int);
int removeSocket();
void init_thread_pool(unsigned short*, int,
void *(*producer)(void*),
void *(*consumer)(void*),
void *args);
unsigned int size();
#endif