thread safe強化