Pithikos / C-Thread-Pool

A minimal but powerful thread pool in ANSI C
MIT License
2.06k stars 603 forks source link

The application has to wait till all the jobs have finished their execution #87

Closed midhunlohi closed 4 years ago

midhunlohi commented 4 years ago

In the example application ( example.c ) , a number of tasks are assigned to the thread pool and the program is not waiting till all the tasks are getting completed. This fix will solve the issue and make program wait till all the scheduled tasks completed. After that, all threads are getting destroyed.

gonzus commented 4 years ago

I agree, I added the same fix.

gonzus commented 4 years ago

Closing without merging because it is now a duplicate of https://github.com/Pithikos/C-Thread-Pool/pull/66 which I already merged.