Re: mapping thread_t <-> cthread_t

2002-02-07 Thread Marcus Brinkmann
On Thu, Feb 07, 2002 at 03:10:24AM +0100, Marcus Brinkmann wrote: > I started testing with a normal file, but echoing and the > limited size of the input buffer (which leads to echoed bells!) made this > unworkable. Another reason is that reading EOF will drop the carrier. Anyway, stacking term

Re: mapping thread_t <-> cthread_t

2002-02-06 Thread Marcus Brinkmann
On Wed, Feb 06, 2002 at 08:12:57PM -0500, Roland McGrath wrote: > Once it's detached, you can't presume the cthread_t is still good (since it > might die at any time). So the only safe thing is if you have some data > structure that tells you for sure that the thread is live and blocked > somewhe

Re: mapping thread_t <-> cthread_t

2002-02-06 Thread Roland McGrath
> how do I map a cthread_t to a thread_t? There is no exported interface for it. > Have the thread dump its hurd_thread_self() value into a global variable? > I want to cancel a forked and detached cthread. Once it's detached, you can't presume the cthread_t is still good (since it might die at

mapping thread_t <-> cthread_t

2002-02-06 Thread Marcus Brinkmann
Hi, how do I map a cthread_t to a thread_t? Have the thread dump its hurd_thread_self() value into a global variable? I want to cancel a forked and detached cthread. Thanks, Marcus -- `Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED] Marcus Brinkmann G