[omniORB] omnithread creation
Stefan Seefeld
seefeld@sympatico.ca
Wed, 09 May 2001 12:36:09 -0400
Ben Miller wrote:
>This is C++ related and as such is nothing to do with omniORB or
>CORBA. Briefly, the reason it will not compile with a non-static
>member function of a class is that this function will expect the
>'this' pointer to be passed in as the first parameter to it.
>
strictly speaking using a static method isn't 'correct' either, as C++
and C don't necessarily
have the same linkage. gcc happens to accept it, but it's not portable.
The right thing to do
is to use an 'extern "C" ' function to pass to the thread creator.
Regards, Stefan