code: def __add_created_thread(self, event):
          
          dwThreadId  = event.get_tid()
          hThread     = event.get_thread_handle()
  ##        if not self.has_thread(dwThreadId):   # XXX this would trigger a scan
          if not self._has_thread_id(dwThreadId):
              aThread = Thread(dwThreadId, hThread, self)
              teb_ptr = event.get_teb()   # remember the TEB pointer
              if teb_ptr:
                  aThread._teb_ptr = teb_ptr
              self._add_thread(aThread)
docs: Private method to automatically add new thread objects from debug events.
  
          @type  event: L{Event}
          @param event: Event object.