Problem with per thread rpc context
H . J . Lu
hjl@lucon.org
Mon Jul 30 21:11:00 GMT 2001
On Mon, Jul 30, 2001 at 07:53:42PM -0700, Kaz Kylheku wrote:
> >
> > Glibc 2.2.4 has the per thread rpc context for thread safe rpc. It
> > works if you don't want to share the rpc context. But in some cases,
> > you do want to share the rpc context among different threads, like
> > creating a rpc context in one thread, passing it around among threads
> > and finally destroying it in a different thread.
>
> Would it be possible to add some functions to allow a thread to install or
> remove a context? Then a thread would still have its own *binding*
> to a context, but the flexibility would be there to unbind the context
> object and use it in another thread. A function would be able set up a
> temporary context and then restore the old one before returning,
> making contexts appear to be dynamically scoped.
I added
extern void __libc_rpc_single_context ();
to my glibc. It can be called to enable single rpc context.
H.J.
More information about the Libc-alpha
mailing list