[omniORB] Ctor/Dtor omni_thread::init_t called per module ???

Rosimildo DaSilva rdasilva@connecttel.com
Sat, 24 Apr 1999 18:54:41 -0500


Is there any reason why th instance below is instantiated in a header file:
omnithread.h
Its global Ctor is invoked for every module that includes omnithread.h

static omni_thread::init_t omni_thread_init;

Why not move this to posix.cc ? and get the Ctor called only once.

Regards, Rosimildo.

+---------------------------------------------------------------------
| ConnectTel, Inc. - Austin, Texas.
| Phone : 512-338-1111 - Fax : 512-918-0449
| Email : devl@connecttel.com  or mkting@connecttel.com
| Site  : http://www.connecttel.com
+---------------------------------------------------------------------