[Fwd: linc_set_threaded] - can anyone else help?



Anybody else have some suggestions on this?


                   *** WARNING ***

This mail has originated outside your organization,
either from an external partner or the Global Internet. 
     Keep this in mind if you answer this message. 


Hi Katherine,

	Firstly, please also CC the list - otherwise I have to reply to 10
people instead of one when everyone has the same problem later :-)

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.

> 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.

> 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






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