thready saftey exported resource