Re: [PATCH 3/3] [gomp] Add thread attribute customization

2015-09-03 Thread Jakub Jelinek
On Thu, Sep 03, 2015 at 01:36:35PM +0200, Sebastian Huber wrote: > On 03/09/15 13:10, Jakub Jelinek wrote: > >On Thu, Sep 03, 2015 at 01:09:23PM +0200, Sebastian Huber wrote: > >We have only thread attributes in this function: mutable_attr and attr. > >The > >attr is initialized with &

Re: [PATCH 3/3] [gomp] Add thread attribute customization

2015-09-03 Thread Sebastian Huber
On 03/09/15 13:10, Jakub Jelinek wrote: On Thu, Sep 03, 2015 at 01:09:23PM +0200, Sebastian Huber wrote: We have only thread attributes in this function: mutable_attr and attr. The attr is initialized with &gomp_thread_attr and gomp_thread_attr is supposed to be read-only by this function. Under

Re: [PATCH 3/3] [gomp] Add thread attribute customization

2015-09-03 Thread Jakub Jelinek
On Thu, Sep 03, 2015 at 01:09:23PM +0200, Sebastian Huber wrote: > >>>We have only thread attributes in this function: mutable_attr and attr. The > >>>attr is initialized with &gomp_thread_attr and gomp_thread_attr is supposed > >>>to be read-only by this function. Under certain conditions we have

Re: [PATCH 3/3] [gomp] Add thread attribute customization

2015-09-03 Thread Sebastian Huber
On 03/09/15 13:05, Jakub Jelinek wrote: On Thu, Sep 03, 2015 at 12:57:53PM +0200, Sebastian Huber wrote: >On 03/09/15 12:19, Jakub Jelinek wrote: > >>@@ -292,7 +292,7 @@ gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads, > >>>bool nested; > >>>struct gomp_thread_po

Re: [PATCH 3/3] [gomp] Add thread attribute customization

2015-09-03 Thread Jakub Jelinek
On Thu, Sep 03, 2015 at 12:57:53PM +0200, Sebastian Huber wrote: > On 03/09/15 12:19, Jakub Jelinek wrote: > >>@@ -292,7 +292,7 @@ gomp_team_start (void (*fn) (void *), void *data, > >>unsigned nthreads, > >>>bool nested; > >>>struct gomp_thread_pool *pool; > >>>unsigned i, n, old_thre

Re: [PATCH 3/3] [gomp] Add thread attribute customization

2015-09-03 Thread Sebastian Huber
On 03/09/15 12:19, Jakub Jelinek wrote: @@ -292,7 +292,7 @@ gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads, >bool nested; >struct gomp_thread_pool *pool; >unsigned i, n, old_threads_used = 0; >- pthread_attr_t thread_attr, *attr; >+ pthread_attr_t mutable_attr,

Re: [PATCH 3/3] [gomp] Add thread attribute customization

2015-09-03 Thread Jakub Jelinek
On Tue, Jul 28, 2015 at 01:04:59PM +0200, Sebastian Huber wrote: > libgomp/ChangeLog > 2015-07-28 Sebastian Huber > > * config/posix/pool.h (gomp_adjust_thread_attr): New. > * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise. > (gomp_thread_pool_reservoir): Add priority