Author: stefan2
Date: Mon Apr 16 15:16:49 2012
New Revision: 1326646

URL: http://svn.apache.org/viewvc?rev=1326646&view=rev
Log:
Fix APR thread usage: APR insists on apr_thread_exit() to be called
if you want to join(). Of course, it will only test for these things
on Windows ...

* subversion/tests/libsvn_subr/named_atomic-test.c
  (test_thread): call apr_thread_exit before leaving the thread

Modified:
    subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c

Modified: subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c?rev=1326646&r1=1326645&r2=1326646&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c Mon Apr 
16 15:16:49 2012
@@ -146,6 +146,7 @@ APR_THREAD_FUNC test_thread(apr_thread_t
                                    params->iterations,
                                    pool);
   apr_pool_destroy(pool);
+  apr_thread_exit(thread, APR_SUCCESS);
 
   return NULL;
 }


Reply via email to