bug-hurd
[Top][All Lists]
Advanced

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

Re: LD linker stubs?


From: Thomas Bushnell, BSG
Subject: Re: LD linker stubs?
Date: 28 Jan 2002 23:46:19 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:

> Can you expand on that?  In particular, I would be grateful if you could
> clarify "cancellation".  Cancellation in pthreads is requesting the
> termination of a thread, where I neither see how that is important in the
> Hurd, nor what is missing for that in the current implementation.

We use it to interrupt RPCs.  The Hurd's "thread_cancel" orders all
future RPCs made by the thread to stop in a controlled way--most
importantly, the RPC that is in progress at roughly the same time as
the cancel is made.

> So I guess you are referring to the interruptable RPCs.  Either we keep the
> current implementation, but put it on top of pthreads rather than cthreads,
> or we change the Hurd to use the pthread infrastructure for that (I guess
> that means using pthread_cleanup_* in the relevant places and using the
> terminating pthread_cancel, rather than using the hurd_condition_wait
> semantics, where a non-zero return value indicates cancellation).

Right.  Switching to pthreads beans doing just that.




reply via email to

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