<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def release(self, connection):
 """ Release a connection back into the pool. This method is thread safe. """

        with self.lock:
            connection.in_use = False
            self.cond.notify_all()