[omniORB] Omni_mutex and static global object

Harri Pasanen harri.pasanen at trema.com
Thu Sep 16 09:58:48 BST 2004


On Thursday 16 September 2004 00:23, Alex Tingle wrote:
> renny.koshy at rubixinfotech.com wrote:
> > I agree... static initializers have haunted projects that I've
> > come into or been involved with as far back as I can remember.
>
> Modern C++ compilers don't seem to have this problem. I regularly
> use GNU/g++, Sun/CC, IBM/xlC, DEC/cxx and HP/aCC and I have never
> once had trouble with static initialisers.
>
> Can anyone name a modern C++ compiler that actually exhibits this
> problem?
>

GNU/g++ older than 3.3.x on HP-UX.   I know gcc on AIX used to have it 
as well, don't remember the version.

It is typically platform specific problem, as it ties in with how the 
dynamic libs are implemented.  I would not be surprised if many 
embedded platforms, such as various smartphones etc. would suffer 
from it.

The fact that initialization and shutdown orders are arbitrary is also 
a problem, especially if one of those objects is holding a lock.

-Harri



This message, including any attachments, is intended only for the person(s) to whom it is addressed. If you received it in error, please let us know and delete the message from your system. This message may be confidential and may fall under the duty of non-disclosure. Any use by others than the intended addressee is prohibited. Trema shall not be liable for any damage related to the electronic transmission of this message, such as failure or delay of its delivery, interception or manipulation by third parties, or transmission of viruses or other malicious code.




More information about the omniORB-list mailing list