summaryrefslogtreecommitdiff
path: root/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp')
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp b/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp
index 1ebfa56991c..98349df316a 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp
+++ b/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp
@@ -8,26 +8,24 @@
namespace
{
static const IOP::ServiceId service_id = 0xdddd;
-}
-
-void guid_copy( Kokyu::GuidType& lhs, const RTScheduling::Current::IdType& rhs)
-{
- lhs.length(rhs.length ());
- ACE_OS::memcpy(lhs.get_buffer (),
- rhs.get_buffer (),
- rhs.length ());
-}
+ static ACE_Atomic_Op<ACE_Thread_Mutex, long> server_guid_counter;
+ void guid_copy( Kokyu::GuidType& lhs, const RTScheduling::Current::IdType& rhs)
+ {
+ lhs.length(rhs.length ());
+ ACE_OS::memcpy(lhs.get_buffer (),
+ rhs.get_buffer (),
+ rhs.length ());
+ }
-void guid_copy( RTScheduling::Current::IdType& lhs, const Kokyu::GuidType& rhs)
-{
- lhs.length(rhs.length ());
- ACE_OS::memcpy(lhs.get_buffer (),
- rhs.get_buffer (),
- rhs.length ());
+ void guid_copy( RTScheduling::Current::IdType& lhs, const Kokyu::GuidType& rhs)
+ {
+ lhs.length(rhs.length ());
+ ACE_OS::memcpy(lhs.get_buffer (),
+ rhs.get_buffer (),
+ rhs.length ());
+ }
}
-ACE_Atomic_Op<ACE_Thread_Mutex, long> server_guid_counter;
-
MIF_Scheduling::SchedulingParameter
MIF_Sched_Param_Policy::value (void)
ACE_THROW_SPEC ((CORBA::SystemException))