2 #include "ace/Log_Msg.h"
3 #include "ace/Thread.h"
4 #include "ace/os_include/os_pthread.h"
8 ACE_THR_FUNC_RETURN
main_orb(void*)
14 CORBA::ORB_var orb
= CORBA::ORB_init (argc
, argv
);
21 ACE_ERROR ((LM_ERROR
, ACE_TEXT("(%P|%t) Unknown error\n")));
27 int ACE_TMAIN(int, ACE_TCHAR
*[])
29 ACE_hthread_t thread1
;
30 # if defined (ACE_HAS_PTHREADS)
31 pthread_create(&thread1
, 0, main_orb
, 0);
33 ACE_Thread::spawn (main_orb
, 0, THR_NEW_LWP
|THR_JOINABLE
, 0, &thread1
);
35 ACE_Thread::join( thread1
);