Closed lk-chen closed 4 months ago
Currently pthreadpool_create() only take a size_t indicating number of threads. Shall we add capability to specify cpu affinity?
Affinity is not portable, e.g. macOS doesn't support it. The best we can do is provide a hint of the current CPU core, similarly to pthreadpool_parallelize_*_with_thread functions.
pthreadpool_parallelize_*_with_thread
Currently pthreadpool_create() only take a size_t indicating number of threads. Shall we add capability to specify cpu affinity?