- Restore thread control function