Re: communicating objects
- From: Thomas Fritz <Thomas Fritz bam de>
- To: Michael Meeks <michael ximian com>
- Cc: orbit <orbit-list gnome org>
- Subject: Re: communicating objects
- Date: 29 Jan 2004 21:21:39 +0100
thanks for pointing me to the pingServer. This was instructive.
At the end I had a threading issue. I assumed that in a threaded
application when all threads but one run clients only, then I won't need
a threaded POA in the main (server) thread. This assumption seems to be
wrong. Using a threaded POA now, my app works well.
On Wed, 2004-01-21 at 23:37, Michael Meeks wrote:
> Hi Thomas,
> On Tue, 2004-01-20 at 19:36, Thomas Fritz wrote:
> > does ORBit2 support calling an object's method from within an other
> > object's method? (I tried this with no success)
> Yes of course; it does this re-enterantly by default; but if you have
> exotic threading policies it uses those.
> > If it does, is there some sample code?
> Well; the test code is full of nasty hacks not to be copied, but to
> prove it works see ORBit2/test/everything/client.c and pingServer.c
> particularly _pingPong - which passes a token back/forth umpteen times.
> I guess your bug is unrelated; try building ORBit2 from clean
> configured with --enable-debug=true; export ORBIT2_DEBUG=traces re-run
> the clients and see what's going on wrt. method invocations.
> firstname.lastname@example.org <><, Pseudo Engineer, itinerant idiot
] [Thread Prev