1 #include "ace/Log_Msg.h"
2 #include "ace/Thread.h"
3 #include "ace/Reactor.h"
4 #include "ace/Proactor.h"
5 #include "ace/POSIX_Proactor.h"
9 #endif /*JAWS_BUILD_DLL*/
11 #include "jaws3/Event_Dispatcher.h"
13 static ACE_THR_FUNC_RETURN
14 JAWS_Event_Dispatcher_Proactor_Event_Loop (void *)
16 ACE_Proactor::run_event_loop ();
22 JAWS_Event_Dispatcher::end_event_loop ()
24 ACE_Reactor::end_event_loop ();
29 JAWS_Event_Dispatcher::run_event_loop ()
31 // First, initiate the proactor thread
34 result
= ACE_Thread::spawn ( JAWS_Event_Dispatcher_Proactor_Event_Loop
40 ACE_ERROR ((LM_ERROR
, "%p\n", "ACE_Thread::spawn"));
44 // Now, enter the reactor's event loop.
45 ACE_Reactor::run_event_loop ();
47 // End the proactor's event loop if reactor was interrupted.
48 ACE_Proactor::end_event_loop ();