@gensim.utils.synchronous('<STR_LIT>')<EOL><INDENT>def commit(self):<DEDENT>
if self.session is not None:<EOL><INDENT>logger.info("<STR_LIT>" % self)<EOL>tmp = self.stable<EOL>self.stable, self.session = self.session, None<EOL>self.istable = <NUM_LIT:1> - self.istable<EOL>self.write_istable()<EOL>tmp.close() <EOL>self.lock_update.release()<EOL><DEDENT>else:<EOL><INDENT>logger.warning("<STR_LIT>" % self)<EOL><DEDENT>
Commit changes made by the latest session.