Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / Kokyu_dsrt_schedulers / utils.cpp
blob7f99595c069ebd81d714ace3a7f3400d8995df5c
1 #include "utils.h"
2 #include "Kokyu/Kokyu.h"
3 #include "ace/Lock_Adapter_T.h"
4 #include "ace/OS_NS_string.h"
6 void guid_copy( Kokyu::GuidType& lhs, const RTScheduling::Current::IdType& rhs)
8 lhs.length(rhs.length ());
9 ACE_OS::memcpy(lhs.get_buffer (),
10 rhs.get_buffer (),
11 rhs.length ());
14 void guid_copy( RTScheduling::Current::IdType& lhs, const Kokyu::GuidType& rhs)
16 lhs.length(rhs.length ());
17 ACE_OS::memcpy(lhs.get_buffer (),
18 rhs.get_buffer (),
19 rhs.length ());