change affinity call to take mask instead of single core
Merge branch 'feature/threading-api-unification' into develop