def clear(self):
with self.__cond:<EOL><INDENT>self.__flag = False<EOL><DEDENT>
Reset the internal flag to false.

        Subsequently, threads calling wait() will block until set() is called to
        set the internal flag to true again.