'Set the internal flag to true.
All threads waiting for the flag to become true are awakened. Threads
that call wait() once the flag is true will not block at all.'

def set(self):

    with self.__cond:
        self.__flag = True
        self.__cond.notify_all()
