team.c (gomp_team_start): Fix setting up thread_attr stack size.

* team.c (gomp_team_start): Fix setting up thread_attr
	stack size.

From-SVN: r125542
This commit is contained in:
Jakub Jelinek 2007-06-07 22:16:53 +02:00 committed by Jakub Jelinek
parent c1ae8be51f
commit 46d8fbd1a2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-06-07 Jakub Jelinek <jakub@redhat.com>
* team.c (gomp_team_start): Fix setting up thread_attr
stack size.
2007-06-02 Paolo Bonzini <bonzini@gnu.org>
* configure: Regenerate.

View File

@ -272,7 +272,7 @@ gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads,
size_t stacksize;
pthread_attr_init (&thread_attr);
pthread_attr_setdetachstate (&thread_attr, PTHREAD_CREATE_DETACHED);
if (! pthread_attr_getstacksize (&thread_attr, &stacksize))
if (! pthread_attr_getstacksize (&gomp_thread_attr, &stacksize))
pthread_attr_setstacksize (&thread_attr, stacksize);
attr = &thread_attr;
}