#ifndef _THREAD_POOL_H_ #define _THREAD_POOL_H_ #ifdef _WIN32 #include "../pthreads/include/pthread.h" #else #include #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