original_docstring: Decorator to block all operations for a global sync call.
docstring: Decorator to block all operations for a global sync call.
docstring_tokens: Decorator to block all operations for a global sync call .
code: def _sync_lock(f):
      """Decorator to block all operations for a global sync call."""
      @six.wraps(f)
      def wrapped(*args, **kwargs):
          with _SYNC_STATE_LOCK.write_lock():
              return f(*args, **kwargs)
      return wrapped
code_tokens: def _sync_lock ( f ) : @ six . wraps ( f ) def wrapped ( * args , ** kwargs ) : with _SYNC_STATE_LOCK . write_lock ( ) : return f ( * args , ** kwargs ) return wrapped
short_docstring: Decorator to block all operations for a global sync call.
short_docstring_tokens: Decorator to block all operations for a global sync call .
comment: """Decorator to block all operations for a global sync call."""