Subject: Re: Unproven threads...
To: None <current-users@netbsd.org>
From: Wolfgang Rupprecht <wolfgang+gnus20010924T194940@wsrcc.com>
List: current-users
Date: 09/24/2001 19:54:36
dreid@jetnet.co.uk (David Reid) writes:
> Has anyone who's used the package noticed calls to pthread_create returning
> a thread but never seemingly running the function asked of it?

This happens in xgrip (the CD -> mp3 gui tool).  Luckily in this case
a call to pthread_join() fixed things, but thats obviously not a very
universal kludge.

+      Debug("creating cddb lookup thread.\n");
+      pthread_create(&cddb_thread,NULL, DoLookup,NULL);
+      /* this new thread never runs.  hit it with a big hammer. -wsr */
+      Debug("join cddb lookup thread.\n");
+      pthread_join(cddb_thread, NULL);

-wolfgang
-- 
       Wolfgang Rupprecht <wolfgang+gnus@dailyplanet.wsrcc.com>
		    http://www.wsrcc.com/wolfgang/
Coming soon: GPS mapping tools for Open Systems. http://www.gnomad-mapping.com/