bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mapping thread_t <-> cthread_t


From: Roland McGrath
Subject: Re: mapping thread_t <-> cthread_t
Date: Wed, 6 Feb 2002 20:12:57 -0500 (EST)

> 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 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
somewhere because the thread itself wrote the data structure and then
blocked.  In short, yes.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]