TSCommon: CPU masks and scheduler thread affinity