mattiasflodin/reckless

Affinity

Closed this issue · 3 comments

Hello,

Is there option to set core affinity for worker thread?

No but it seems like a reasonable addition. Would a specific core index be sufficient, or would it need to be an affinity mask? The latter seems slightly more difficult to make platform-agnostic.

Perhaps it would be better to just offer access to the std::thread object and you could use native_handle to do whatever you like?

I think best option would be to just add access to underlying std::thread,
so user can handle affinities himself. Would be great to see it!

On Thu, May 14, 2015, 21:08 Mattias Flodin notifications@github.com wrote:

No but it seems like a reasonable addition. Would a specific core index be
sufficient, or would it need to be an affinity mask? The latter seems
slightly more difficult to make platform-agnostic.

Perhaps it would be better to just offer access to the std::thread object
and you could use native_handle to do whatever you like?


Reply to this email directly or view it on GitHub
#1 (comment)
.

Resolved in c623d55.