comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada Thread Termination
Date: Sat, 2 Feb 2008 20:55:46 +0100
Date: 2008-02-02T20:55:46+01:00	[thread overview]
Message-ID: <syz1npmlubfz.7m9upwai2wvd$.dlg@40tude.net> (raw)
In-Reply-To: f7866882-e806-46a6-a97e-a33bdf042338@e10g2000prf.googlegroups.com

On Sat, 2 Feb 2008 11:41:55 -0800 (PST), shaunpatterson@gmail.com wrote:

> Listen_For_Message is actually a call to a blocking socket read, so
> the call may not finish if nothing else comes through the socket. I'm
> not sure how to structure this thread so it can be terminated on
> demand.
> 
> Any ideas?

Close the socket from outside, that would cause listening to end with a
"socket closed" error, so the listener task could quit.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2008-02-02 19:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-02 19:41 Ada Thread Termination shaunpatterson
2008-02-02 19:55 ` Dmitry A. Kazakov [this message]
2008-02-02 21:23 ` gpriv
2008-02-04 17:57 ` Adam Beneschan
2008-02-04 23:26   ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox