<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add(self, item):
 """ Add an item to the set, and return whether it was newly added """

        with self.lock:
            if item in self.set:
                return False
            self.set.add(item)
            return True