Pithikos / C-Thread-Pool

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

Add example of passing struct to task function #119

Open morisja opened 1 year ago

morisja commented 1 year ago

Thanks for the very useful library! I needed to pass more than a single integer to the task, this PR demonstrates passing a struct. I also updated gitignore to avoid committing the build artifact.

Pithikos commented 9 months ago

thanks @morisja for this. However I think it's best to keep examples separated as to make it friendly for beginners and less overwhelming.

I suggest if you could move your example as a separate one into ./examples unless you have another suggestion