code: def _del_thread(self, dwThreadId):
          
          try:
              aThread = self.__threadDict[dwThreadId]
              del self.__threadDict[dwThreadId]
          except KeyError:
              aThread = None
              msg = "Unknown thread ID %d" % dwThreadId
              warnings.warn(msg, RuntimeWarning)
          if aThread:
              aThread.clear()
docs: Private method to remove a thread object from the snapshot.
  
          @type  dwThreadId: int
          @param dwThreadId: Global thread ID.