FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/transaction.c
/* Obtain a lock on the transaction list of filesystem FS, call BODY
   with FS, BATON, and POOL, and then unlock the transaction list.
   Return what BODY returned. */
Obtain a lock on the transaction list of filesystem FS, call BODY
with FS, BATON, and POOL, and then unlock the transaction list.
Return what BODY returned.
Obtain a lock on the transaction list of filesystem FS call BODY with FS BATON and POOL and then unlock the transaction list . Return what BODY returned .
static svn_error_t *
with_txnlist_lock(svn_fs_t *fs,
                  svn_error_t *(*body)(svn_fs_t *fs,
                                       const void *baton,
                                       apr_pool_t *pool),
                  const void *baton,
                  apr_pool_t *pool)
{
  fs_fs_data_t *ffd = fs->fsap_data;
  fs_fs_shared_data_t *ffsd = ffd->shared;
  SVN_MUTEX__WITH_LOCK(ffsd->txn_list_lock,
                       body(fs, baton, pool));
  return SVN_NO_ERROR;
}
static svn_error_t * with_txnlist_lock ( svn_fs_t * fs , svn_error_t * ( * body ) ( svn_fs_t * fs , const void * baton , apr_pool_t * pool ) , const void * baton , apr_pool_t * pool ) { fs_fs_data_t * ffd = fs -> fsap_data ; fs_fs_shared_data_t * ffsd = ffd -> shared ; SVN_MUTEX__WITH_LOCK ( ffsd -> txn_list_lock , body ( fs , baton , pool ) ) ; return SVN_NO_ERROR ; }
Obtain a lock on the transaction list of filesystem FS, call BODY
with FS, BATON, and POOL, and then unlock the transaction list.
Obtain a lock on the transaction list of filesystem FS call BODY with FS BATON and POOL and then unlock the transaction list .