The threadpool is under MIT license. Notice that this project took a considerable amount of work and sacrifice of my free time and the reason I give it for free (even for commercial use) is so when you become rich and wealthy you don't forget about us open-source creatures of the night. Cheers!
For a deeper look into the documentation check in the `thpool.h` file. Also notice that to use **any** of the API you have to **include the thpool.h**.
| ***thpool_init(4)*** | Will return a new threadpool with 4 threads. |
| ***thpool_add_work(thpool, void *(*function_p)(void*), (void*)arg_p)*** | Will add new work to the pool. Work is simply a function. You can pass a single argument to the function if you wish. If not, NULL should be passed. |
| ***thpool_wait(thpool)*** | Will wait for **all** jobs (both in queue and currently running) to finish. |
| ***thpool_destroy(thpool)*** | This will destroy thpool. If jobs are currently being executed, then it will wait for them to finish before destroying the threadpool. |
| ***thpool_pause(thpool)*** | All threads in the threadpool will pause no matter if they are idle or executing |
| ***thpool_pause(thpool)*** | If the threadpool is paused, then all threads will resume from where they were |