This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.3 branch testsuite issues


> 2) pthreads4.cc times out. See here:-

Thanks Greg, moved "as obvious".  (Sorry about that.  Yes, I forgot to
move the final tweak to the test.)

$ ccvs update -j1.6 -j1.7 pthread4.cc

	* testsuite/thread/pthread4.cc: Further tweak to avoid fini race.

Index: testsuite/thread/pthread4.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/thread/pthread4.cc,v
retrieving revision 1.4.4.2
diff -c -r1.4.4.2 pthread4.cc
*** testsuite/thread/pthread4.cc        15 May 2003 16:13:21 -0000      1.4.4.2
--- testsuite/thread/pthread4.cc        16 Jul 2003 01:17:42 -0000
***************
*** 61,66 ****
--- 61,71 ----
        pthread_mutex_unlock (&fooLock);
      }
  
+   // No more data will ever be written, ensure no fini race
+   pthread_mutex_lock (&fooLock);
+   pthread_cond_signal (&fooCondUnderflow);
+   pthread_mutex_unlock (&fooLock);
+ 
    return 0;
  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]