summaryrefslogtreecommitdiff
path: root/trunk/TAO/examples/Kokyu_dsrt_schedulers/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/examples/Kokyu_dsrt_schedulers/utils.cpp')
-rw-r--r--trunk/TAO/examples/Kokyu_dsrt_schedulers/utils.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/trunk/TAO/examples/Kokyu_dsrt_schedulers/utils.cpp b/trunk/TAO/examples/Kokyu_dsrt_schedulers/utils.cpp
new file mode 100644
index 00000000000..d1c32a0c9d6
--- /dev/null
+++ b/trunk/TAO/examples/Kokyu_dsrt_schedulers/utils.cpp
@@ -0,0 +1,23 @@
+//$Id$
+
+#include "utils.h"
+#include "Kokyu.h"
+#include "ace/Lock_Adapter_T.h"
+#include "ace/OS_NS_string.h"
+
+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 ());
+}
+