Add time_to_wakeup attribute in the thread struct.