subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1182979 - /subversion/trunk/subversion/libsvn_fs/fs-loader.c
Date Thu, 13 Oct 2011 16:57:28 GMT
Author: stefan2
Date: Thu Oct 13 16:57:28 2011
New Revision: 1182979

URL: http://svn.apache.org/viewvc?rev=1182979&view=rev
Log:
* subversion/libsvn_fs/fs-loader.c
  (svn_fs_initialize): use APR_HAS_THREADS as function parameter instead of #if state

Modified:
    subversion/trunk/subversion/libsvn_fs/fs-loader.c

Modified: subversion/trunk/subversion/libsvn_fs/fs-loader.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs/fs-loader.c?rev=1182979&r1=1182978&r2=1182979&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs/fs-loader.c (original)
+++ subversion/trunk/subversion/libsvn_fs/fs-loader.c Thu Oct 13 16:57:28 2011
@@ -265,9 +265,8 @@ svn_fs_initialize(apr_pool_t *pool)
     return SVN_NO_ERROR;
 
   common_pool = svn_pool_create(pool);
-#if APR_HAS_THREADS
-  SVN_ERR(svn_mutex__init(&common_pool_lock, TRUE, common_pool));
-#endif
+  SVN_ERR(svn_mutex__init(&common_pool_lock, APR_HAS_THREADS, common_pool));
+
   /* ### This won't work if POOL is NULL and libsvn_fs is loaded as a DSO
      ### (via libsvn_ra_local say) since the global common_pool will live
      ### longer than the DSO, which gets unloaded when the pool used to



Mime
View raw message