Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: please try to reproduce weird problem with pthread_create and stacksize limit



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 ---



Home | Main Index | Thread Index | Old Index