Re: linc_set_threaded



Hi again,

Thanks for your continued response but I'm still no better off, therefore more
questions I'm afraid....

Michael Meeks wrote:

>  Hi Katherine,
>
> On Wed, 2002-06-26 at 10:33, Katherine Goude wrote:
> > I'm trying to find out about linc_set_threaded and you seem to be the
> > person to ask. I very recently posted a message to the orbit group about
> > the troubles I'm having with making my multi-threaded program act as
> > server to one object while being a client for another object in a
> > separate thread.
>
>         Ok - as you notice, in order to get anywhere you need to invoke
> linc_set_threaded (TRUE), and you need to do it before initializing the
> ORB. Notice that ORBit2/test/everything/server.c and client.c do this -
> successfully.

Since I have two clients and two servers, one client and one server being in the
same program (and also the second server being started using a system call from one
thread of that program - just to make things more complicated!), do all 4 need to
call linc_set_threaded (TRUE) before ORB initialisation? Because when I tried this
I got the error message I previously described (see below).

> > Will using linc_set_Threaded(TRUE) solve this?
>
>         It will help; you'll still get locking problems and things - the thread
> support is not complete.
>
> > And if so where should I
> > use it? I tried using it in my server setup function after initialising
> > the environment variable and before initialising the ORB but got a
> > runtime error saying "You need to set this before using the ORB" - but I
> > did!
>
>         Very odd, it works in the test.

So no ideas how to solve that?

>
>
> > Alternatively, would using ORBit-MT solve my problem instead?
>
>         ORBit-MT may solve your problem more completely, but it's author ...
> sigh, ask this question on list, and we can have a proper discussion.
>
>         Regards,
>
>                 Michael.
>
> --
>  mmeeks@gnu.org  <><, Pseudo Engineer, itinerant idiot

I'd appreciate anyones assistance.

Katherine




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