Maratyszcza / pthreadpool

Portable (POSIX/Windows/Emscripten) thread pool for C/C++
BSD 2-Clause "Simplified" License
350 stars 133 forks source link

Fix pthreadpool_parallelize_*_with_thread functions #37

Closed Maratyszcza closed 1 year ago

Maratyszcza commented 1 year ago

When work-stealing, pass the thread ID of the executing thread rather than of the thread we steal the work from