On the revprop-cache branch: Since APR proc mutexes are only validrevprop-cacherevprop-cache
commit2bd19e5c424b35a6d52e69bf18ca1e434592db84
authorStefan Fuhrmann <[email protected]>
Thu, 12 Apr 2012 19:39:36 +0000 (12 19:39 +0000)
committerStefan Fuhrmann <[email protected]>
Thu, 12 Apr 2012 19:39:36 +0000 (12 19:39 +0000)
tree95e1131800b172573347a34992a014baa5cbc3b3
parent93ed33ee47182060538a436c8d57ae047b335c42
On the revprop-cache branch: Since APR proc mutexes are only valid
within a process tree, we need our own global mutex mechanism.
It uses a lock file for global sync. and a svn_mutex__t for thread sync.
Also, fix an issue identified by testing without intrinsics.

* subversion/libsvn_subr/svn_named_atomic.c
  (synched_read): must take a reference to the sync'ed data
  (svn_named_atomic__read): adapt caller
  (mutex_pool, mutex, lock_file): data for the new sync mechanism
  (init_mutex, lock, unlock): implement new sync mechanism

git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/revprop-cache@1325463 13f79535-47bb-0310-9956-ffa450edef68
subversion/libsvn_subr/svn_named_atomic.c