first commit

This commit is contained in:
Jose Caban
2025-06-07 01:59:34 -04:00
commit 388ac241f0
3558 changed files with 9116289 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#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