Subject: Re: please try to reproduce weird problem with pthread_create and stacksize limit
To: None <port-amiga@netbsd.org>
From: Gunther Nikl <gni@gecko.de>
List: port-amiga
Date: 07/11/2005 12:55:08
On Sat, Jul 09, 2005 at 12:20:08PM +0000, S.P.Zeidler wrote:
> the following program:
> --- snip ---
> #include <pthread.h>
> #include <stddef.h>
> 
> void *thread_routine(void *data) {
>     return data;
> }
> 
> int main() {
>     pthread_t thd;
>     pthread_mutexattr_t mattr;
>     pthread_once_t once_init = PTHREAD_ONCE_INIT;

  once_init appears to be unused. I don't know if that matters.

  Gunther

>     int data = 1;
>     pthread_mutexattr_init(&mattr);
>     return pthread_create(&thd, NULL, thread_routine, &data);
> }
> --- snap ---