def _RunningInThread(thread):
 return (threading.currentThread().getName() == thread.getName())

def _RunningInThread ( thread ) : return ( threading . currentThread ( ) . getName ( ) == thread . getName ( ) )
return true if we are running within the specified thread .