Returns a snapshot of the Jobs that are currently being processed by the
    ThreadPool. These jobs can not be found in the #pending_jobs() list.

def current_jobs(self):
    """
    Returns a snapshot of the Jobs that are currently being processed by the
    ThreadPool. These jobs can not be found in the #pending_jobs() list.
    """

    jobs = []
    with synchronized(self.__queue):
      for worker in self.__threads:
        with synchronized(worker):
          if worker.current:
            jobs.append(worker.current)
    return jobs