summaryrefslogtreecommitdiff
path: root/ACE/ace/Message_Block_T.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Message_Block_T.inl')
-rw-r--r--ACE/ace/Message_Block_T.inl31
1 files changed, 31 insertions, 0 deletions
diff --git a/ACE/ace/Message_Block_T.inl b/ACE/ace/Message_Block_T.inl
new file mode 100644
index 00000000000..6829bd6c360
--- /dev/null
+++ b/ACE/ace/Message_Block_T.inl
@@ -0,0 +1,31 @@
+// -*- C++ -*-
+//
+// $Id$
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+template<class ACE_LOCK> ACE_INLINE
+ACE_Locked_Data_Block<ACE_LOCK>::ACE_Locked_Data_Block (void)
+{
+ this->locking_strategy_ = &this->lock_;
+}
+
+template<class ACE_LOCK> ACE_INLINE
+ACE_Locked_Data_Block<ACE_LOCK>::
+ACE_Locked_Data_Block (size_t size,
+ ACE_Message_Block::ACE_Message_Type msg_type,
+ const char *msg_data,
+ ACE_Allocator *allocator_strategy,
+ ACE_Message_Block::Message_Flags flags,
+ ACE_Allocator *data_block_allocator)
+ : ACE_Data_Block (size,
+ msg_type,
+ msg_data,
+ allocator_strategy,
+ &lock_,
+ flags,
+ data_block_allocator)
+{
+}
+
+ACE_END_VERSIONED_NAMESPACE_DECL