Date: Wed, 23 Feb 2005 03:58:04 +0000 From: Jonathon McKitrick <jcm@FreeBSD-uk.eu.org> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: freebsd-questions@freebsd.org Subject: Re: Best way to share data between threads Message-ID: <20050223035804.GA95877@dogma.freebsd-uk.eu.org> In-Reply-To: <20050222124244.GA80450@orion.daedalusnetworks.priv> References: <20050222055000.GA49525@dogma.freebsd-uk.eu.org> <20050222063810.GA1784@gothmog.gr> <20050222121911.GA63213@dogma.freebsd-uk.eu.org> <20050222124244.GA80450@orion.daedalusnetworks.priv>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 22, 2005 at 02:42:44PM +0200, Giorgos Keramidas wrote: : 1) Explicit notification using a condition variable. : : The first can be accomplished by associating a pthread_cond_t with the I think this is the approach I will use. As a matter of fact, I added it today for a different, more limited use, and it worked well. We have an instrument that needs firmware ftp'ed to it after a cold start, and I placed that into a pthread. I'll try the data acq thread soon. The only problem is that pthread_join doesn't seem to have a timeout feature. So if the thread hangs, I have no way of knowing. Jonathon McKitrick -- My other computer is your Windows box.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050223035804.GA95877>