'LexUDL.cxx currently isn\'t thread-safe.'

def tokenize_by_style(self, text, call_back=None):

    self._lock.acquire()
    try:
        return Lexer.tokenize_by_style(self, text, call_back)
    finally:
        self._lock.release()
