Re: posix threads error

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

 



From: "Kaz Kylheku" <kaz@xxxxxxxxxxxxxxxxx>
From: "Lucas Prado Melo" <lucaspm@xxxxxxxxxxx>:
   if( pthread_mutex_init(&( pck.mutex), NULL) != 0 )
       die("pthread_mutex_init");

You forgot:

 pck.stck = NULL;  /* create empty stack */

Pardon me,

 /* initialize stack to empty state using appropriate API. */
 stackInit(&pck.stck);

:)

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux