Maratyszcza / pthreadpool

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

threadpool get single pthread api #22

Closed fwz-fpga closed 2 years ago

fwz-fpga commented 2 years ago

I use pthreadpool_create api create a pthreadpool. And I want to set cpu affinity with every thread in the pool. Does Pthreadpool support this ? Or does Pthreadpool support api that get single pthread in the pool with index?

Maratyszcza commented 2 years ago

Neither setting affinity, nor accessing the native thread objects in the threadpool is supported.