Initial version of ThreadAffinityTaskScheduler