code: def release(self, connection):
          
          with self.lock:
              connection.in_use = False
              self.cond.notify_all()
docs: Release a connection back into the pool.
          This method is thread safe.