mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 16:23:56 +08:00
* testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
From-SVN: r66418
This commit is contained in:
parent
28068c2c91
commit
d4c67b6ee3
@ -1,3 +1,7 @@
|
||||
2003-05-03 Loren J. Rittle <ljrittle@acm.org>
|
||||
|
||||
* testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
|
||||
|
||||
2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* include/Makefile.am (CLEANFILES): Remove PCH files in target
|
||||
|
@ -124,14 +124,6 @@ main (int argc, char** argv)
|
||||
{
|
||||
pthread_join (prod[i], NULL);
|
||||
pthread_join (cons[i], NULL);
|
||||
#if defined(__FreeBSD__) && __FreeBSD__ < 5
|
||||
// These lines are not required by POSIX since a successful
|
||||
// join is suppose to detach as well...
|
||||
pthread_detach (prod[i]);
|
||||
pthread_detach (cons[i]);
|
||||
// ...but they are according to the FreeBSD 4.X code base
|
||||
// or else you get a memory leak.
|
||||
#endif
|
||||
delete tq[i];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user