summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2001-06-24 21:51:44 +0000
committerbala <balanatarajan@users.noreply.github.com>2001-06-24 21:51:44 +0000
commit29ac9e95ac97a74bda68c5c0c2c3ae68ff2808d7 (patch)
treeb6b99a86bca4d75cf86713f7a05db1a794fc5f44
parent3481015c772572cedb0b6ab731d0ea6c282d9138 (diff)
downloadATCD-29ac9e95ac97a74bda68c5c0c2c3ae68ff2808d7.tar.gz
ChangeLogTag: Sun Jun 24 16:48:54 2001 Balachandran Natarajan <bala@cs.wustl.edu>
-rw-r--r--TAO/ChangeLogs/ChangeLog-02a6
-rw-r--r--TAO/tao/ORB_Core.h3
-rw-r--r--TAO/tao/ORB_Core.i9
3 files changed, 18 insertions, 0 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a
index 335a69306c0..950fae615ba 100644
--- a/TAO/ChangeLogs/ChangeLog-02a
+++ b/TAO/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,9 @@
+Sun Jun 24 16:48:54 2001 Balachandran Natarajan <bala@cs.wustl.edu>
+
+ * tao/ORB_Core.h:
+ * tao/ORB_Core.i: Provided accessor for the locks that are used to
+ lock the data blocks during reference counting.
+
Sun Jun 24 10:09:06 2001 Balachandran Natarajan <bala@cs.wustl.edu>
* tests/Oneways_Invoking_Twoways/client.dsp:
diff --git a/TAO/tao/ORB_Core.h b/TAO/tao/ORB_Core.h
index b231a03367b..0ff9e111629 100644
--- a/TAO/tao/ORB_Core.h
+++ b/TAO/tao/ORB_Core.h
@@ -475,6 +475,9 @@ public:
ACE_Data_Block *create_input_cdr_data_block (size_t size);
+ /// Return the locking strategy used for the data blocks.
+ ACE_Lock *locking_strategy (void);
+
/// The data blocks returned have memeory from the global pool. Will
/// not get anything from the TSS even if it is available.
ACE_Data_Block *data_block_for_message_block (size_t size);
diff --git a/TAO/tao/ORB_Core.i b/TAO/tao/ORB_Core.i
index 5600f37651f..8fe1c4ad291 100644
--- a/TAO/tao/ORB_Core.i
+++ b/TAO/tao/ORB_Core.i
@@ -22,6 +22,15 @@ TAO_ORB_Core::_decr_refcnt (void)
return 0;
}
+ACE_INLINE ACE_Lock *
+TAO_ORB_Core::locking_strategy (void)
+{
+ if (this->resource_factory ()->use_locked_data_blocks ())
+ return &this->data_block_lock_;
+
+ return 0;
+}
+
ACE_INLINE TAO_Transport_Cache_Manager *
TAO_ORB_Core::transport_cache (void)
{