<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>ORB thread init without static object</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Is there a way to explicitly initialize the omniORB thread without having to rely on the static object 'omni_thread_init' to construct it? The reason is that I'm using a framework which all my servers/clients inherit from which also uses static objects to initialize certain classes prior to the main() being called. Some of these classes require that the ORB be running before they can be initialized. Depending where the objects are initialized or what the compiler/linker did with them, the order in which they are initialized is somewhat random. Hence I'm stuck in a catch 22. As a workaround, I'm using GNU specific attributes to change the order in which the static objects are being initialized: __attribute ((init_priority(X))). However I'd like to use a more generic approach. Any recommendations?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thanks,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Mike</FONT>
</P>
<P><B><FONT COLOR="#0000FF" FACE="Bookman Old Style">Michael Shearer</FONT></B>
<BR><B><FONT SIZE=1 FACE="Garamond">CVX SS7 Gateway (CSG) Engineer</FONT></B>
<BR><B><FONT SIZE=1 FACE="Garamond">Aastra Telecom US, CVX Division</FONT></B>
<BR><B><FONT SIZE=1 FACE="Garamond">8 Federal Street</FONT></B>
<BR><B><FONT SIZE=1 FACE="Garamond">Billerica, MA, USA, 01821-3570</FONT><BR>
</B><FONT COLOR="#0000FF" SIZE=1 FACE="Wingdings">(</FONT><FONT COLOR="#000000" SIZE=1 FACE="Arial"></FONT> <FONT COLOR="#808080" SIZE=1 FACE="Arial">Phone (978) 436-4248</FONT>
<BR><FONT COLOR="#0000FF" SIZE=1 FACE="Wingdings">(</FONT><FONT COLOR="#000000" SIZE=1 FACE="Arial"></FONT> <FONT COLOR="#808080" SIZE=1 FACE="Arial">Fax (978) 436-4233</FONT><BR>
<FONT COLOR="#0000FF" SIZE=1 FACE="Wingdings">,</FONT><FONT COLOR="#000000" SIZE=1 FACE="Arial"></FONT> <FONT COLOR="#808080" SIZE=1 FACE="Arial">Internet Mail</FONT><U> <FONT COLOR="#0000FF" SIZE=1 FACE="Arial">mshearer@aastra.com</FONT></U><BR>
<FONT COLOR="#0000FF" SIZE=1 FACE="Wingdings">:</FONT><FONT COLOR="#000000" SIZE=1 FACE="Arial"></FONT> <FONT COLOR="#808080" SIZE=1 FACE="Arial">Web</FONT><FONT COLOR="#0000FF" SIZE=1 FACE="Arial"></FONT><U> <FONT COLOR="#0000FF" SIZE=1 FACE="Arial">www.aastra.com</FONT></U>
</P>
</BODY>
</HTML>