dereferencing anonymous pointers
Quote:
> I have some code wherein I use posix threads, which are being created
> dynamically. To track them, I'm using glib's singly-linked list
> implementation and storing a pointer to the pthread_t that gets created.
> Now, in order to call pthread_join, I need to dereference the
> anonymous pointer
What's an anonymous pointer? A void pointer perhaps?
Quote:
> that's pointing to that thread. i.e., something
> like
> status=pthread_join( *thread_list[0].data, NULL );
> but gcc complains about doing that.
Cast your void pointer to the structure type that it points to,
then use the result of the cast.
--
"You call this a *C* question? What the hell are you smoking?" --Kaz