如果我有这种类型的程序级功能
def returnInt(s):
return int(float(s))
它最终被2个单独的线程同时调用它是“线程安全的”还是我需要在两个线程类中添加为函数,例如
class StepperControl(threading.Thread):
....
def returnInt(self,s):
return int(float(self.s))
....
class BounceControl(threading.Thread):
....
def returnInt(self,s):
return int(float(self.s))
....
西蒙