2 #include "ace/Log_Msg.h"
3 #include "ace/Thread.h"
4 #include "ace/os_include/os_pthread.h"
8 #if defined (__SUNPRO_CC)
10 #endif /* __SUNPRO_CC */
11 ACE_THR_FUNC_RETURN
main_orb(void*)
17 CORBA::ORB_var orb
= CORBA::ORB_init (argc
, argv
);
24 ACE_ERROR ((LM_ERROR
, ACE_TEXT("(%P|%t) Unknown error\n")));
30 int ACE_TMAIN(int, ACE_TCHAR
*[])
32 ACE_hthread_t thread1
;
33 # if defined (ACE_HAS_PTHREADS)
34 pthread_create(&thread1
, 0, main_orb
, 0);
36 ACE_Thread::spawn (main_orb
, 0, THR_NEW_LWP
|THR_JOINABLE
, 0, &thread1
);
38 ACE_Thread::join( thread1
);