[MP] Added com_affinity bit-flag to force which cores can be used
[SP] Added com_affinity bit-flag to force which cores can be used
[SP] Remove unused variable