Re: pthread bug

2014-09-18 Thread Matti Karnaattu
>It's broken code: PTHREAD_ONCE_INIT is only required to be an >initializer, not a value. Ok, thanks.

Re: pthread bug

2014-09-18 Thread Matti Karnaattu
Oh, I forgot to mention that I'm running current and I have this error few days ago too. man/pthread_once.3 says that this is ok but looks like something is missing from headers. -Matti 2014-09-19 1:33 GMT+03:00 Matti Karnaattu : > This doesn't compile: > > #include > > pthread_once_t once_con

Re: pthread bug

2014-09-18 Thread Philip Guenther
On Thu, Sep 18, 2014 at 3:33 PM, Matti Karnaattu wrote: > This doesn't compile: It's broken code: PTHREAD_ONCE_INIT is only required to be an initializer, not a value. Philip Guenther

pthread bug

2014-09-18 Thread Matti Karnaattu
This doesn't compile: #include pthread_once_t once_control; int main() { pthread_t new_thread; once_control = PTHREAD_ONCE_INIT; return 1; }