Will this kind of behavior cause problems in threaded environments?