2 * @file Task_Activator.cpp
4 * @author Jody Hagins <jody@atdesk.com>
5 * @author Carlos O'Ryan <coryan@uci.edu>
7 #ifndef TAO_PERF_RTEC_TASK_ACTIVATOR_CPP
8 #define TAO_PERF_RTEC_TASK_ACTIVATOR_CPP
10 #include "Task_Activator.h"
11 #include "tao/Environment.h"
12 #include "ace/Log_Msg.h"
14 #if !defined(__ACE_INLINE__)
15 #include "Task_Activator.inl"
16 #endif /* __ACE_INLINE__ */
19 Task_Activator
<Task
>::Task_Activator (int priority
,
28 // We explicitly ignore errors, this is exactly what we do in the
29 // test anyway. In a generic class we would need to throw an
31 if (this->task_
->activate (scheduling_class
| THR_NEW_LWP
| THR_JOINABLE
,
33 1, // force_activation
36 // Release, we cannot wait for it or anything like that...
39 "Task_Activator failed %p\n", ""));
44 Task_Activator
<Task
>::~Task_Activator ()
49 // Wait until the task terminates
53 #endif /* TAO_PERF_RTEC_TASK_ACTIVATOR_CPP */