apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yla...@apache.org
Subject svn commit: r1790569 - in /apr/apr/trunk/test: testlock.c testlockperf.c
Date Fri, 07 Apr 2017 15:14:51 GMT
Author: ylavic
Date: Fri Apr  7 15:14:51 2017
New Revision: 1790569

URL: http://svn.apache.org/viewvc?rev=1790569&view=rev
Log:
locks: follow up to r1790488, r1790521 and r1790523: likewise for the tests.


Modified:
    apr/apr/trunk/test/testlock.c
    apr/apr/trunk/test/testlockperf.c

Modified: apr/apr/trunk/test/testlock.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testlock.c?rev=1790569&r1=1790568&r2=1790569&view=diff
==============================================================================
--- apr/apr/trunk/test/testlock.c (original)
+++ apr/apr/trunk/test/testlock.c Fri Apr  7 15:14:51 2017
@@ -91,7 +91,7 @@ static void *APR_THREAD_FUNC thread_mute
     while (1)
     {
         if (data) {
-            apr_thread_mutex_timedlock(thread_mutex, *(apr_time_t *)data);
+            apr_thread_mutex_timedlock(thread_mutex, *(apr_interval_time_t *)data);
         }
         else {
             apr_thread_mutex_lock(thread_mutex);
@@ -187,7 +187,7 @@ static void test_thread_timedmutex(abts_
 {
     apr_thread_t *t1, *t2, *t3, *t4;
     apr_status_t s1, s2, s3, s4;
-    apr_time_t timeout;
+    apr_interval_time_t timeout;
 
     s1 = apr_thread_mutex_create(&thread_mutex, APR_THREAD_MUTEX_TIMED, p);
     ABTS_INT_EQUAL(tc, APR_SUCCESS, s1);
@@ -345,8 +345,8 @@ static void test_timeoutcond(abts_case *
 static void test_timeoutmutex(abts_case *tc, void *data)
 {
     apr_status_t s;
+    apr_interval_time_t timeout;
     apr_time_t begin, end;
-    apr_time_t timeout;
     int i;
 
     s = apr_thread_mutex_create(&timeout_mutex, APR_THREAD_MUTEX_TIMED, p);

Modified: apr/apr/trunk/test/testlockperf.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testlockperf.c?rev=1790569&r1=1790568&r2=1790569&view=diff
==============================================================================
--- apr/apr/trunk/test/testlockperf.c (original)
+++ apr/apr/trunk/test/testlockperf.c Fri Apr  7 15:14:51 2017
@@ -61,7 +61,7 @@ void * APR_THREAD_FUNC thread_mutex_func
 
     for (i = 0; i < max_counter; i++) {
         if (data) {
-            apr_thread_mutex_timedlock(thread_lock, *(apr_time_t *)data);
+            apr_thread_mutex_timedlock(thread_lock, *(apr_interval_time_t *)data);
         }
         else {
             apr_thread_mutex_lock(thread_lock);



Mime
View raw message