Thread Start and end interceptors
Sai-Lai Lo
S.Lo@orl.co.uk
Mon, 16 Feb 1998 20:16:57 GMT
>>>>> Billy Newport writes:
> Hello,
> I'm starting to use ObjectStore PSE 2.1 with OmniORB 2.4 on NT. The
> problem is that I need to place:
> OS_PSE_ESTABLISH_FAULT_HANDLER
> ....
> OS_PSE_END_FAULT_HANDLER
> Establish constructs an object on the stack frame inside a try block, END
> is just a dummy catch.
> So, I need a nice way to make my GIOP Server threads do this around the
> IIOP dispatch loop. Otherwise, I'll have these lines all over the place
> in my code.
This issue came up last year on this list. As demonstrated by this example,
I think there is a case for adding hooks to allow applications to
control/modify the behaviour of the GIOP Server threads. I haven't come up
with a nice interface yet, so any suggestions are welcomed.
In case you have not found out already, the place to add the code you want
is src/lib/omniORB2/tcpSocketMTfactory.cc. The method
tcpSocketWorker::run() contains the outer loop you are looking for.
Sai-Lai