original_docstring: A decorator that locks a transaction during the function call.
docstring: A decorator that locks a transaction during the function call.
docstring_tokens: A decorator that locks a transaction during the function call .
code: def _SynchronizeTxn(function):
    """A decorator that locks a transaction during the function call."""
  
    def sync(txn, *args, **kwargs):
  
      txn._lock.acquire()
      try:
  
        Check(txn._state is LiveTxn.ACTIVE, 'transaction closed')
  
        return function(txn, *args, **kwargs)
      finally:
  
        txn._lock.release()
    return sync
code_tokens: def _SynchronizeTxn ( function ) : def sync ( txn , * args , ** kwargs ) : txn . _lock . acquire ( ) try : Check ( txn . _state is LiveTxn . ACTIVE , 'transaction closed' ) return function ( txn , * args , ** kwargs ) finally : txn . _lock . release ( ) return sync
short_docstring: A decorator that locks a transaction during the function call.
short_docstring_tokens: A decorator that locks a transaction during the function call .
comment: """A decorator that locks a transaction during the function call."""