Ok, add a function line checkThreadSafety()?
I will refine it.