Re: libgomp: gomp_ptrlock*() specification

2015-07-08 Thread Jakub Jelinek
On Wed, Jul 08, 2015 at 09:36:43PM +0200, Sebastian Huber wrote: > from the use cases in libgomp it seems that you may set the value of a > ptrlock object at most once via gomp_ptrlock_set() if it wasn't already > initialized to a non-NULL value via gomp_ptrlock_init()? Is this correct? Please se

libgomp: gomp_ptrlock*() specification

2015-07-08 Thread Sebastian Huber
Hello, from the use cases in libgomp it seems that you may set the value of a ptrlock object at most once via gomp_ptrlock_set() if it wasn't already initialized to a non-NULL value via gomp_ptrlock_init()? Is this correct? Why is there a specialized Linux implementation? Is this to save one