thread tasks are not derived classes of thread_task interface