def set(self):
with self.__cond:<EOL><INDENT>self.__flag = True<EOL>self.__cond.notify_all()<EOL><DEDENT>
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.