1 #ifndef Thread_Action_H
2 #define Thread_Action_H
4 #include "tao/RTScheduling/RTScheduler.h"
5 #include "ace/Log_Msg.h"
6 #include "ace/OS_NS_string.h"
7 #include "ace/SString.h"
13 RTScheduling::Current_var current
;
16 class Test_Thread_Action
:
17 public RTScheduling::ThreadAction
20 Test_Thread_Action ();
22 virtual void _cxx_do (CORBA::VoidData data
);
25 #endif /*Thread_Action_H*/
28 Test_Thread_Action::Test_Thread_Action ()
33 Test_Thread_Action::_cxx_do (CORBA::VoidData data
)
35 Data
* tmp
= (Data
*) data
;
37 "Test_Thread_Action::do %C\n",
41 RTScheduling::Current::IdType_var id
= tmp
->current
->id ();
42 ACE_OS::memcpy (&count
,
47 "The spawned DT Guid is %d\n",
50 RTScheduling::Current::NameList_var segment_name_list
=
51 tmp
->current
->current_scheduling_segment_names ();
54 "Segment Names for DT %d:\n",
57 for (unsigned int i
= 0; i
< segment_name_list
->length (); i
++)
61 (*segment_name_list
)[i
].in ()));