code: def get_thread(self):
          
          tid     = self.get_tid()
          process = self.get_process()
          if process.has_thread(tid):
              thread = process.get_thread(tid)
          else:
              # XXX HACK
              # The thread object was missing for some reason, so make a new one.
              thread = Thread(tid)
              process._add_thread(thread)
          return thread
docs: @see: L{get_tid}
  
          @rtype:  L{Thread}
          @return: Thread where the event occured.