This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with per thread rpc context


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]