<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clear(self):
 """Remove all queue entries."""

        self.mutex.acquire()
        self.queue.clear()
        self.mutex.release()