This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
From: "Lucas Prado Melo" <lucaspm@dcc.ufba.br>:if( pthread_mutex_init(&( pck.mutex), NULL) != 0 ) die("pthread_mutex_init");
You forgot:
pck.stck = NULL; /* create empty stack */
/* initialize stack to empty state using appropriate API. */ stackInit(&pck.stck);
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |