original_docstring: Acquires the next cursor id in a thread safe manner.
docstring: Acquires the next cursor id in a thread safe manner.
docstring_tokens: Acquires the next cursor id in a thread safe manner .
code: def _AcquireCursorID(cls):
      """Acquires the next cursor id in a thread safe manner."""
      cls._next_cursor_lock.acquire()
      try:
        cursor_id = cls._next_cursor
        cls._next_cursor += 1
      finally:
        cls._next_cursor_lock.release()
      return cursor_id
code_tokens: def _AcquireCursorID ( cls ) : cls . _next_cursor_lock . acquire ( ) try : cursor_id = cls . _next_cursor cls . _next_cursor += 1 finally : cls . _next_cursor_lock . release ( ) return cursor_id
short_docstring: Acquires the next cursor id in a thread safe manner.
short_docstring_tokens: Acquires the next cursor id in a thread safe manner .
comment: """Acquires the next cursor id in a thread safe manner."""