apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/test testlockperf.c
Date Thu, 11 Jul 2002 06:37:35 GMT
wrowe       2002/07/10 23:37:35

  Modified:    test     testlockperf.c
  Log:
    Proof that (UNNESTED) was a bad default on Win32;
  
  apr_thread_mutex_t Tests
      Initializing the apr_thread_mutex_t (UNNESTED)          OK
      Starting all the threads                                OK
  microseconds: 10171875 usec
  apr_thread_mutex_t Tests
      Initializing the apr_thread_mutex_t (NESTED)            OK
      Starting all the threads                                OK
  microseconds: 906250 usec
  apr_thread_rwlock_t Tests
      Initializing the apr_thread_rwlock_t                    OK
  microseconds: 18234375 usec
  
  Revision  Changes    Path
  1.9       +2 -2      apr/test/testlockperf.c
  
  Index: testlockperf.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testlockperf.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- testlockperf.c	9 Apr 2002 06:45:06 -0000	1.8
  +++ testlockperf.c	11 Jul 2002 06:37:35 -0000	1.9
  @@ -124,8 +124,8 @@
       mutex_counter = 0;
   
       printf("apr_thread_mutex_t Tests\n");
  -    printf("%-60s", "    Initializing the apr_thread_mutex_t");
  -    s1 = apr_thread_mutex_create(&thread_lock, APR_THREAD_MUTEX_DEFAULT, pool);
  +    printf("%-60s", "    Initializing the apr_thread_mutex_t (UNNESTED)");
  +    s1 = apr_thread_mutex_create(&thread_lock, APR_THREAD_MUTEX_UNNESTED, pool);
       if (s1 != APR_SUCCESS) {
           printf("Failed!\n");
           return s1;
  
  
  

Mime
View raw message