parameters: (self)
return_statement: return thread
docstring: @see: L{get_tid}
  
          @rtype:  L{Thread}
          @return: Thread where the event occured.
docstring_summary: @see: L{get_tid}
docstring_tokens: @see : L { get_tid }
function: def get_thread(self):
          """
          @see: L{get_tid}
  
          @rtype:  L{Thread}
          @return: Thread where the event occured.
          """
          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
function_tokens: 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